On Fri Oct 03 13:29:43 2014, kellydasov...@gmail.com wrote:
> Not sure if this is actually a rakudobug or a specbug, but it is definitely
> surprising and unsettling.
> 
> (my @ = 'a', <b c>)[1].perl.say;
> # "b"
> 
> (constant @ = 'a', <b c>)[1].perl.say;
> # ("b", "c")
> 
> perl6 -v
> # This is perl6 version 2014.09-81-g89abcf2 built on MoarVM version
> 2014.09-12-gb9e24ee

This behavior is changing:

06:17 < [Coke]> m: (my @ = 'a', <b c>)[1].perl.say; (constant @ = 'a', <b 
c>)[1].perl.say;
06:17 < GLRelia> rakudo-moar 00a34b: OUTPUT«("b", "c")␤("b", "c")␤»
06:17 <+camelia> rakudo-moar 5fb81f: OUTPUT«"b"␤("b", "c")␤»

GLR shows the glr branch, camelia is the current behavior on nom.

The behavior going forward won't flatten it either case, and is consistent 
between the two.

Passing glr tests added S04-declarations/constant.t; Closing case.
-- 
Will "Coke" Coleda

Reply via email to