On Thu Feb 25 16:12:50 2010, masak wrote: > <diakopter> rakudo: my $a = sub { say $^a + $^a }; $a(4); # first of 2 > <p6eval> rakudo a215ee: OUTPUT«Not enough positional parameters > passed; got 1 but expected 2 [...] > <diakopter> rakudo: my $a = sub { say $^a + $^a }; $a(4, 5); # second of 2 > <p6eval> rakudo a215ee: OUTPUT«10» > * masak submits rakudobug > > Just to be clear, the first one-liner should not fail, the second > should. Also, in a hypothetical world where the second shouldn't fail, > 10 is the wrong answer. It should be 8.
And now, it works. Resolving. <masak> rakudo: my $a = sub { say $^a + $^a }; $a(4) <p6eval> rakudo 9a15b8: OUTPUT«8» <masak> rakudo: my $a = sub { say $^a + $^a }; $a(4, 5) <p6eval> rakudo 9a15b8: OUTPUT«Too many positional parameters passed; got 2 but expected 1 [...]