[perl #115566] [BUG] Variables declared in quasi blocks don't work in Rakudo

2016-04-07 Thread Matthew Wilson via RT
new behavior: 13:48 m: use experimental :macros; macro foo { quasi { my $a = "OH HAI"; say $a } }; foo 13:48 rakudo-moar 61d231: OUTPUT«===SORRY!===␤Optimizer: No lexical $a found␤»

Re: [perl #115566] [BUG] Variables declared in quasi blocks don't work in Rakudo

2014-10-21 Thread Nicholas Clark
On Tue, Oct 14, 2014 at 04:45:47AM -0700, Christian Bartolomaeus via RT wrote: > Just an update: Parrot no longer segfaults, but Moar does: > > $ perl6-m -e 'macro foo { quasi { my $a = "OH HAI"; say $a } }; foo' > Segmentation fault ==23928== Invalid read of size 8 ==23928==at 0x4F57A5E: MVM

[perl #115566] [BUG] Variables declared in quasi blocks don't work in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
Just an update: Parrot no longer segfaults, but Moar does: $ perl6-m -e 'macro foo { quasi { my $a = "OH HAI"; say $a } }; foo' Segmentation fault $ perl6-p -e 'macro foo { quasi { my $a = "OH HAI"; say $a } }; foo' Cannot assign to an immutable value in any at -e:1 in block at -e:1 $ perl

[perl #115566] [BUG] Variables declared in quasi blocks don't work in Rakudo

2012-11-03 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #115566] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=115566 > r: macro infix:(*@asts) is assoc('list') { my $result = @asts.pop; for @asts.rev