在 Oct 12, 2006 2:39 PM 時,Ovid 寫到:

--To forcefully add a role to a class at a distance during runtime, use

a class object call (see Moose::Meta::Class for more about these
APIs):

     ^Dog.add_role(^Catlike);

That's more of what I was thinking, but where is this documented?  I
can't find it in http://dev.perl.org/perl6/doc/design/syn/S12.html.  I
see it in the Moose docs, but is this in Perl 6?  I thought it was.

Well, it's in Perl 6, and Moose is currently the metaobject layer when the
VM that runs Perl 6 happens to be perl5...

Right after the 6.2.13 release (which is ready now, except for changelogging), we'll switch to the Moose team's MO system, ensuring that the introspectio
APIs work exactly the same way on both GHC and perl5 virtual machines.

Thanks,
Audrey

Reply via email to