Skip Menu |
Report information
Id: 126858
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at] gmx.de>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
Subject: infinite recursion with put and kinda recursive arrays
Date: Wed, 9 Dec 2015 19:19:33 +0100 (CET)
my @b; @b = @b, 1; put @b; OUTPUT«Memory allocation failed; could not allocate 8192 bytes␤»
Subject: [perl #126858]
Date: Wed, 9 Dec 2015 20:40:38 +0200
From: Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko [...] gmail.com>
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 155b
Same thing can be achieved with something like this:

Code:
my @b;
my @a;
@a[0] = @b;
@b[0] = @a;
say @b

Result:
(\Array_194175640 = [[Array_194175640]])



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org