On Sun Feb 08 01:22:03 2015, rayd...@cyberuniverses.com wrote: > ... > 06:11:09 TimToady | hmm > 06:11:42 TimToady | m: class Foo { has @.bar }; say Foo.new( bar => > [1,2,3] ).bar.elems > 06:11:43 +camelia | rakudo-moar d26211: OUTPUT«3» > 06:12:20 TimToady | but apparently loses the itemization somewhere > 06:12:47 TimToady | you'd only get 1 elem if you assigned [1,2,3] > directly to @foo
These days, that 3 is correct, because after the GLR [1,2,3] is no longer an item and assignment follows the 1-arg rule. There was still a bug, however; this gave 3: class Foo { has @.bar }; say Foo.new( bar => $[1,2,3] ).bar.elems When it should have given 1. I've fixed that, and added tests in S12-attributes/instance.t.