On Tue Jan 27 06:34:17 2009, mberends wrote:
> Compare the following two command lines, both should print
> 0:
> 
> perl6 -e 'class A { has @!a; method m { say @!a.elems; }; };
> A.new.m;'
> 
> perl6 -e 'class A { has Str @!a; method m { say @!a.elems;
> }; }; A.new.m;'
> 
> The latter prints 1, and a more extensive example using a
> class type instead of Str suggests that the array contains a
> protoobject. No bisect results yet, but r35309 (just
> pre-rvar2) prints 0 both times.
> 
Just tried this in current Rakudo, and it outputs 0 both times as
expected. Assigning to moritz++ for spectets.

Thanks,

Jonathan

Reply via email to