[perl #81548] [BUG] Can't do 'handles' on a type in Rakudo

2011-01-06 Thread Moritz Lenz via RT
FWIW 'has $!a handles TypeObject' is now implemented, and works fine for roles. It doesn't work for classes, because they have a .new method. So the standard .new is overridden, trying to call the .new on an attribute, but since there's no instance yet, the access to the attribute fails. That's a

[perl #81548] [BUG] Can't do 'handles' on a type in Rakudo

2011-01-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #81548] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=81548 > rakudo: class A { has @.b handles Array }; my $a = A.new; say $a.b.perl; $a.push(1, 2,