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
Failures don't get sunk when last in for loop #6355
Comments
From @zoffixznetThe .map gets special treatment if it's the last item of a for loop and it gets sunk so that it gets evaluated: m: for 1 { ^2 .map: *.say } We need to add the same special treatment for Failures, as they fail to explode because they never get sunk: m: for 1 { +'x' } |
From @zoffixznetMore examples: <Zoffix__> m: sub mv { for 1 { Failure.new }; 42 }(); The first one manages to sink and explode Failure, the second one does not. |
From @zoffixznetRelated Issue: rakudo/rakudo#1360 |
From @zoffixznetOn Wed, 03 Jan 2018 10:51:49 -0800, cpan@zoffix.com wrote:
Fix: rakudo/rakudo@4c5b81fedb7434b235 |
@zoffixznet - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#131622 (status was 'resolved')
Searchable as RT131622$
The text was updated successfully, but these errors were encountered: