sequences with a pointy block with two params do the wrong thing #109

Closed
masak opened this Issue Feb 28, 2012 · 0 comments

Projects

None yet

2 participants

@masak
Collaborator
masak commented Feb 28, 2012
<TimToady> niecza: my @x := 1,10, -> $a, $b { $a+1, $b+1 } ... *; say @x[5]
<p6eval> niecza v15-2-gd19c478: OUTPUT«3 3␤»
<TimToady> nom: my @x := 1,10, -> $a, $b { $a+1, $b+1 } ... *; say @x[5]
<p6eval> nom e95935: OUTPUT«5 14␤»
<TimToady> sorear: ^^ nieczabug
<masak> nom: my @x := 1,10, -> $a, $b { $a+1, $b+1 } ... *; say @x[0..10].perl
<p6eval> nom e95935: OUTPUT«(1, 10, (2, 11), (3, 12), (4, 13), (5, 14), (6, 15), (7, 16), (8, 17), (9, 18), (10, 19))␤»
<masak> niecza: my @x := 1,10, -> $a, $b { $a+1, $b+1 } ... *; say @x[0..10].perl
<p6eval> niecza v15-2-gd19c478: OUTPUT«(1, 10, $(2, 11), $(11, 3), $(3, 3), $(3, 3), $(3, 3), $(3, 3), $(3, 3), $(3, 3), $(3, 3))␤»
* masak submits nieczabug
@sorear sorear added a commit that closed this issue May 21, 2012
@sorear Quick fix to do something more useful with sequence closures that ret…
…urn multiple values (fixes #109)
0308871
@sorear sorear closed this in 0308871 May 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment