Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last without doesn't #5885

Closed
p6rt opened this issue Dec 15, 2016 · 5 comments
Closed

last without doesn't #5885

p6rt opened this issue Dec 15, 2016 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Dec 15, 2016

Migrated from rt.perl.org#130354 (status was 'resolved')

Searchable as RT130354$

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

From @lizmat

lizmat m​: loop { last without index("a","foo") } # feels to me this shouldn't hang ?
camelia rakudo-moar b28604​: OUTPUT«(timeout)»
m​: loop { print "foo" without index("a","foo") } # feels to me this shouldn't hang ?
camelia rakudo-moar b28604​: OUTPUT«(timeout)foofoofoofoofoofoofoofoofoofo​ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo​ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo​ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo​ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo​ofoofoofoofoofoofoofoofoofoofoofoofoof…»
jnthn m​: say index("a","foo")
camelia rakudo-moar b28604​: OUTPUT«Nil␤»
jnthn m​: say index("a","foo").defined
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn m​: say index("a","foo").DEFINITE
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn Yeah, looks busted and I'm not sure why :)
lizmat m​: say ?index("a","foo")
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn without should care about .defined fwiw
lizmat m​: loop { last not with index("a","foo") } # also odd?
camelia rakudo-moar b28604​: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Undeclared routine​:␤ with used at line 1␤␤»
lizmat m​: FOO​: loop { last FOO without index("a","foo") } # this works
camelia rakudo-moar b28604​: ( no output )

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

From @zoffixznet

On Thu, 15 Dec 2016 03​:54​:40 -0800, elizabeth wrote​:

lizmat m​: loop { last without index("a","foo") } # feels to me this
shouldn't hang ?
camelia rakudo-moar b28604​: OUTPUT«(timeout)»
m​: loop { print "foo" without index("a","foo") } # feels to me this
shouldn't hang ?
camelia rakudo-moar b28604​:
OUTPUT«(timeout)foofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoof…»
jnthn m​: say index("a","foo")
camelia rakudo-moar b28604​: OUTPUT«Nil␤»
jnthn m​: say index("a","foo").defined
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn m​: say index("a","foo").DEFINITE
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn Yeah, looks busted and I'm not sure why :)
lizmat m​: say ?index("a","foo")
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn without should care about .defined fwiw
lizmat m​: loop { last not with index("a","foo") } # also odd?
camelia rakudo-moar b28604​: OUTPUT«===SORRY!=== Error while compiling
<tmp>␤Undeclared routine​:␤ with used at line 1␤␤»
lizmat m​: FOO​: loop { last FOO without index("a","foo") } # this
works
camelia rakudo-moar b28604​: ( no output )

Figured out the cause, working on a fix, which may... um... take a bit. It's tricky.

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

From @zoffixznet

On Thu, 15 Dec 2016 03​:54​:40 -0800, elizabeth wrote​:

lizmat m​: loop { last without index("a","foo") } # feels to me this
shouldn't hang ?
camelia rakudo-moar b28604​: OUTPUT«(timeout)»
m​: loop { print "foo" without index("a","foo") } # feels to me this
shouldn't hang ?
camelia rakudo-moar b28604​:
OUTPUT«(timeout)foofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo
ofoofoofoofoofoofoofoofoofoofoofoofoof…»
jnthn m​: say index("a","foo")
camelia rakudo-moar b28604​: OUTPUT«Nil␤»
jnthn m​: say index("a","foo").defined
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn m​: say index("a","foo").DEFINITE
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn Yeah, looks busted and I'm not sure why :)
lizmat m​: say ?index("a","foo")
camelia rakudo-moar b28604​: OUTPUT«False␤»
jnthn without should care about .defined fwiw
lizmat m​: loop { last not with index("a","foo") } # also odd?
camelia rakudo-moar b28604​: OUTPUT«===SORRY!=== Error while compiling
<tmp>␤Undeclared routine​:␤ with used at line 1␤␤»
lizmat m​: FOO​: loop { last FOO without index("a","foo") } # this
works
camelia rakudo-moar b28604​: ( no output )

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@9a3c35013e25f69
Tests​: Raku/roast@fc0d82adf5

@p6rt p6rt closed this as completed Dec 15, 2016
@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant