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 use &exit from END block in Rakudo, all backends #3435
Comments
From @masak<hoelzro> in Perl 5, one can assign to $? in an END block to alter a Moar and Parrot loop forever; the JVM blows the call stack. My guess I don't recall the spec mentioning this, but it feels fairly obvious |
From @lizmatOn 21 Jul 2014, at 09:25, Carl Mäsak (via RT) <perl6-bugs-followup@perl.org> wrote:
FWIW, I think the problem is that running the END blocks does not remove them from the list of END blocks. Each END block should only be run *once*. Hence, execution of an END block should remove it from the list *before* executing it. Pretty sure that would solve this problem. Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6This seems to work now: $ perl6-m -e 'END exit(5)'; echo $? I added a test to S04-phasers/end.t with the following commit: Raku/roast@7050e78bc7 I'm closing the ticket now. |
1 similar comment
From @usev6This seems to work now: $ perl6-m -e 'END exit(5)'; echo $? I added a test to S04-phasers/end.t with the following commit: Raku/roast@7050e78bc7 I'm closing the ticket now. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#122355 (status was 'resolved')
Searchable as RT122355$
The text was updated successfully, but these errors were encountered: