On Tue Jul 05 13:18:32 2011, masak wrote:
> <masak> std: my @a = 1, 2, 3, given 42;
> <p6eval> std 37a0cdd: OUTPUT«ok 00:01 122m»
> <masak> rakudo: my @a = 1, 2, 3, given 42; say @a
> <p6eval> rakudo 72d158: OUTPUT«Could not find sub &given [...]
> * masak submits rakudobug
>
> A comma at the end of a list before the end of a statement is usually
> not a problem. If I'm reading the output from STD.pm6 correctly, the
> same goes for commas just before 'given' (and 'if' and 'while' and
> other statement modifiers). Rakudo seems to be in term position only
> and treats the 'given' as a sub call.
Update on rakudo behavior:
19:55 < [Coke]> m: my @a = 1, 2, 3, given 42;
19:55 <+camelia> rakudo-moar 974d00: OUTPUT«===SORRY!=== Error while compiling
/tmp/HEBAcRoKPyUndeclared routine: given used at line 1»
--
Will "Coke" Coleda