I suspect this bug may be related to #112716
(https://rt.perl.org/rt3/Ticket/Display.html?id=112716); the .map()
operation (which 'for' uses) tends to be a bit too eager in evaluating
its invocant list.
I've taken both bugs and will work on a fix shortly.
Pm
(so please ignore my initial report, because it was lazily written,
here is the proper bugreport, restated with clarity)
The following loop should iterate infinitely, but it does not:
my @array = 1, 2;
for @array -> $n {
$n.say;
@array.push: $n + 2;
}
say @rray;
# New Ticket Created by Siddhant Saraf
# Please include the string: [perl #113026]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=113026 >
$ perl6 -v
This is perl6 version 2012.05-15-gdca0fa6 built on parrot 4.4.0
revi