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
Something is wrong with $_ topicalization in statement_mod 'for' and 'given' in Rakudo #2501
Comments
From @masak<masak> nom: my $t = q[%foo% %bar% %foo% %baz%]; my %b = foo => 1, bar |
From @cokeOn Wed Oct 05 06:05:05 2011, masak wrote:
These all now work like b did. Closable with tests. ./perl6
-- |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6As a status update: we're back at the original failures: $ perl6 -e 'my $t = q[%foo% %bar% %foo% %baz%]; my %b = foo => 1, bar => 2, baz => 3; $t.=subst("%{.key}%", .value, :g) for %b.pairs; say $t' $ perl6-m -e 'my %b = foo => 1, bar => 2, baz => 3; say "{.key}" for %b.pairs' $ perl6 -e 'say "{.key}" given a => 1' It works when for is followed by a block (instead of the statement_mod form) $ perl6 -e 'my %b = foo => 1, bar => 2, baz => 3; for %b.pairs { say "{.key}" }' |
1 similar comment
From @usev6As a status update: we're back at the original failures: $ perl6 -e 'my $t = q[%foo% %bar% %foo% %baz%]; my %b = foo => 1, bar => 2, baz => 3; $t.=subst("%{.key}%", .value, :g) for %b.pairs; say $t' $ perl6-m -e 'my %b = foo => 1, bar => 2, baz => 3; say "{.key}" for %b.pairs' $ perl6 -e 'say "{.key}" given a => 1' It works when for is followed by a block (instead of the statement_mod form) $ perl6 -e 'my %b = foo => 1, bar => 2, baz => 3; for %b.pairs { say "{.key}" }' |
From @jnthnOn Sun Apr 19 02:54:22 2015, bartolin@gmx.de wrote:
Fixed and unfudged tests in S04-statement-modifier/for.t and S04-statement-modifier/given.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#100746 (status was 'resolved')
Searchable as RT100746$
The text was updated successfully, but these errors were encountered: