New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Either binding or lexicals are broken in Rakudo when recursing #1398
Comments
From @masak$ cat /tmp/test my $m = M.new; $ perl6 /tmp/test # expected output: <masak> jnthn: did you fix my bug yet? |
From @masakmasak (>):
<masak> rakudo: sub f(@a, $i=0) { $i ~ "[{map { f($_, $i + 1) }, @a}]" }; say f([[], [[]], []]) |
From [Unknown Contact. See original ticket]masak (>):
<masak> rakudo: sub f(@a, $i=0) { $i ~ "[{map { f($_, $i + 1) }, @a}]" }; say f([[], [[]], []]) |
@masak - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/positional.t commit 81dba48cd7a6151ac6afc17948e68322aa721fbf [t/spec] test for RT #70469, recursion and parameter binding Inline Patchdiff --git a/t/spec/S06-signature/positional.t b/t/spec/S06-signature/positional.t
index 4cc6195..0c65e57 100644
--- a/t/spec/S06-signature/positional.t
+++ b/t/spec/S06-signature/positional.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 5;
+plan 6;
sub my_first ($x, $, $ ) { $x };
sub my_second ($, $x, $ ) { $x };
@@ -32,4 +32,14 @@ is my_third( 4, 5, 6), 6, '($, $, $x) works as a signature';
is rt60408_if(42), (42, 42), 'use of @_[0] in an "if" block (RT 60408)';
}
+#?rakudo todo 'RT 70469'
+{
+
+ sub f(@a, $i) {
+ $i ~ "[{map { f($_, $i + 1) }, @a}]"
+ };
+ is f([[], [[]], []], 0), "0[1[] 1[2[]] 1[]]",
+ 'recusion and parameter binding work out fine';
+}
+
# vim: ft=perl6 |
From @moritzFrom t/spec/S06-signature/sub-ref.t: { my $inc1 = $mkinc(); is($inc1(), 0, "clousures: inc1 == 0"); Rakudo now fails the last two tests, the old rakudo (now alpha) passed It shares $x between both closures, although it shouldn't. |
From @pmichaudOn Tue, Feb 23, 2010 at 01:42:44AM -0800, Moritz Lenz wrote:
In general Rakudo is likely to still have issues with closure cloning-- Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @masak<masak> I found the disastrous bug. |
From @masak<masak> pmichaud: do you think http://rt.perl.org/rt3/Ticket/Display.html?id=74488 is |
From [Unknown Contact. See original ticket]<masak> pmichaud: do you think http://rt.perl.org/rt3/Ticket/Display.html?id=74488 is |
@masak - Status changed from 'new' to 'open' |
From @moritzTests now pass thanks to pmichaud's recent 'llsig' branch, closing ticket. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#70469 (status was 'resolved')
Searchable as RT70469$
The text was updated successfully, but these errors were encountered: