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

Can't 'last' from the first label in a multi-labeled loop in Rakudo #3391

Open
p6rt opened this issue May 22, 2014 · 4 comments
Open

Can't 'last' from the first label in a multi-labeled loop in Rakudo #3391

p6rt opened this issue May 22, 2014 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 22, 2014

Migrated from rt.perl.org#121943 (status was 'open')

Searchable as RT121943$

@p6rt
Copy link
Author

p6rt commented May 22, 2014

From @masak

<masak> m​: L1​: L2​: loop { last L1 }; say "alive"
<camelia> rakudo-moar 900f0b​: ( no output )
<masak> m​: L1​: L2​: loop { last L2 }; say "alive"
<camelia> rakudo-moar 900f0b​: OUTPUT«alive␤»
* masak submits rakudobug
<masak> I'm conservative in this case. I don't think there's *any* use
for multiple labels on the same loop.
<masak> YMMV.

@p6rt
Copy link
Author

p6rt commented Oct 25, 2015

From @usev6

Behaviour has changed for the first evaluation. It fails with X​::ControlFlow now​:

$ perl6-m -e 'L1​: L2​: loop { last L1 }; say "alive"'
control exception without handler
  in block <unit> at -e​:1

$ perl6-m --version
This is perl6 version 2015.10-7-gca1cf74 built on MoarVM version 2015.10

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 25, 2015

From @usev6

Behaviour has changed for the first evaluation. It fails with X​::ControlFlow now​:

$ perl6-m -e 'L1​: L2​: loop { last L1 }; say "alive"'
control exception without handler
  in block <unit> at -e​:1

$ perl6-m --version
This is perl6 version 2015.10-7-gca1cf74 built on MoarVM version 2015.10

@p6rt
Copy link
Author

p6rt commented Oct 25, 2015

@usev6 - Status changed from 'new' to 'open'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant