On Sat, Oct 25, 2008 at 10:52:13AM +0200, Moritz Lenz wrote:
Chris Dolan wrote:
I stumbled across this issue while descending into a recursive Match
structure. Consider the following reentrant subroutine:
You have just experienced this bug:
Chris Dolan wrote:
I stumbled across this issue while descending into a recursive Match
structure. Consider the following reentrant subroutine:
sub f($n) {
for 0..$n - $i {
say $i of 0..$n;
if ($i == 4) {
f(0);
}
}
};
f(6);
You have just
I stumbled across this issue while descending into a recursive Match
structure. Consider the following reentrant subroutine:
sub f($n) {
for 0..$n - $i {
say $i of 0..$n;
if ($i == 4) {
f(0);
}
}
};
f(6);
The value of the argument, $n, gets overwritten