My only issue with this is that methods are not really parts of packages, methods are class things. Perhaps we could call it code_ref_map or something better so we can get the actual functionality, and then Role and Class can just alias them to method_mao or something like that?

And perhaps this is something we could put in C::MOP::Module, since Package is meant to model Perl 5 packages and Module is sort of an in- between thing that comes from Perl 6 but is not terrible well defined.

Dunno, just some random thoughts.

- Stevan


On Jul 22, 2009, at 7:17 PM, Hans Dieter Pearcey wrote:

I just merged the method_map_move branch into master; this takes all of the methods that operate only on the current class's methods and moves them into
CMOP::Package (get_method, has_method, etc.).

CMOP::Class still has everything to do with introspection of (possibly)
inherited methods.

This clears the way for refactoring some duplicated code between CMOP::Class
and Moose::Meta::Role.

hdp.

Reply via email to