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»
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
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
# 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