On Fri, 18 Dec 2015 11:06:44 -0800, madcap.ru...@gmail.com wrote:
> perl6 -e 'my $a = 10; $a ^= 2; say $a' hangs indefinitely.
> 
> On irc, camelia outputs:
> rakudo-moar 71dadb: OUTPUT«Memory allocation failed; could not
> allocate 2210832 bytes␤»
> 
> And my version:
> $ perl6 -v
> This is rakudo version 2015.11-419-gb7f0bcc built on MoarVM version
> 2015.11-34-gc3eea17 implementing Perl v6.b.

The hang is due to trying to output self-referential Junctions. Seems it needs 
the same `.gistseen` fix, like we have for Lists and Maps.

$ perl6 -e 'my $a = 10; $a = one($a, 2); '        # doesn't hang
$ perl6 -e 'my $a = 10; $a = one($a, 2); $a.perl' # hangs
$ perl6 -e 'my $a = 10; $a = all($a, 2); $a.perl' # hangs

Reply via email to