On Sun, 25 Dec 2016 09:50:17 -0800, c...@zoffix.com wrote: > zoffix@VirtualBox:~$ perl6 -e 'my int $x = 4; say $x || 2' > 1 > zoffix@VirtualBox:~$ perl6 --optimize=off -e 'my int $x = 4; say $x || > 2' > 4 > zoffix@VirtualBox:~$ perl6 -v > This is Rakudo version 2016.11-182-gea28845 built on MoarVM version > 2016.11-41-gd2139b5 > implementing Perl 6.c. > zoffix@VirtualBox:~$ > > > There's a pretty good chance that the optimizer evaluates the > statement and encounters NQP bug involving ||: > https://github.com/perl6/nqp/issues/332
Looks as if Zoffix fixed this with https://github.com/rakudo/rakudo/commit/83e157012da83e32b10d3739800cdc09e2287db1