On Sun Dec 07 04:42:25 2008, masak wrote: > The following should work in Rakudo: > > $ perl6 -e 'class A {}; my $a = A.new.clone' > Method 'clone' not found for invocant of class 'A' > [...] > Segmentation fault > > Perhaps more to the point, the following should work too, and print > "5\n42\n": > > $ perl6 -e 'class A { has $.x }; my $a = new A(x => 5); my $a2 = > a.clone; say $a2.x; my $a3 = a.clone(x => 42); say $a3.x'
After fixing the occasional lack of sigils and the Java-ism (A.new, not new A), this now works as of r34029. :-) Plus also some tests in S12-attributes/instance.t. Thanks! Jonathan