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
Lexical weirdness from blocks inside re-entrant subs in Rakudo #2628
Comments
From @masak<Radvendii> is it *remotely* possible that given $i {} is changing the |
From @masak<Radvendii> nom: sub foo ($a, $f) { if $f { foo('z', 0) }; {$_=$a; say |
From [Unknown Contact. See original ticket]<Radvendii> nom: sub foo ($a, $f) { if $f { foo('z', 0) }; {$_=$a; say |
@masak - Status changed from 'new' to 'open' |
From @masak<Radvendii> nom: sub foo ($a, $f) { if $f { foo('z', 0) }; {$_=$a; say |
From [Unknown Contact. See original ticket]<Radvendii> nom: sub foo ($a, $f) { if $f { foo('z', 0) }; {$_=$a; say |
From @usev6The first example works now as expected: $ perl6-m -e 'sub foo ($a, $f) { if $f { foo("z", 0) }; given $a {say $a; say $_} }; foo("x", 1)' The second example works on rakudo.jvm but fails on rakudo.moar: $ perl6-j -e 'sub foo ($a, $f) { if $f { foo("z", 0) }; {$_=$a; say $a; say $_} }; foo("x", 1)' $ perl6-m -e 'sub foo ($a, $f) { if $f { foo("z", 0) }; {$_=$a; say $a; say $_} }; foo("x", 1)' I added two tests (the second fudged 'todo' for Moar) to S06-advanced/lexical-subs.t with commit Raku/roast@0867f11ce3 |
1 similar comment
From @usev6The first example works now as expected: $ perl6-m -e 'sub foo ($a, $f) { if $f { foo("z", 0) }; given $a {say $a; say $_} }; foo("x", 1)' The second example works on rakudo.jvm but fails on rakudo.moar: $ perl6-j -e 'sub foo ($a, $f) { if $f { foo("z", 0) }; {$_=$a; say $a; say $_} }; foo("x", 1)' $ perl6-m -e 'sub foo ($a, $f) { if $f { foo("z", 0) }; {$_=$a; say $a; say $_} }; foo("x", 1)' I added two tests (the second fudged 'todo' for Moar) to S06-advanced/lexical-subs.t with commit Raku/roast@0867f11ce3 |
From @masakA bit late to the game, but... <masak> here's a shorter version: |
From @jnthnOn Thu Jun 18 13:49:36 2015, bartolin@gmx.de wrote:
After a fix, the test now passes on MoarVM too. Unfudged it. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#109322 (status was 'resolved')
Searchable as RT109322$
The text was updated successfully, but these errors were encountered: