On Thu May 15 12:43:22 2014, moritz wrote:
> <moritz> m: class A { BEGIN {say A.^name } }
> <camelia> rakudo-moar ea173d: OUTPUT«===SORRY!===␤Cannot invoke this object
>           (REPR: Null, cs = 0)␤»
> 
> This doesn't work because .^ is implemented as a dispatcher in class Mu;
> at the time the .^ call is performed, A isn't fully composed, and thus
> the dispatcher:<.^> from Mu isn't available.
> 
> If Rakudo instead rewrote it to A.HOW.name(A) internally, this fragility
> could be avoided, thus I consider it a bug.
> 
> (Also, the error message is LTA).

Fixed now, and tested in S12-introspection/meta-class.t.

Reply via email to