Re: Metaclass traits

2010-05-12 Thread Mike Friedman
wrote: >> >> Mike, >> >> Let me take a stab as I understand it.  Hopefully, some of the other >> Moosers >> will correct me if I am wrong: >> >>> Are traits and roles the same, here? >> >> Yes. Metaclass traits are roles applied to the me

Re: Metaclass traits

2010-05-11 Thread Stevan Little
On May 10, 2010, at 11:17 PM, Christopher Brown wrote: Mike, Let me take a stab as I understand it. Hopefully, some of the other Moosers will correct me if I am wrong: Are traits and roles the same, here? Yes. Metaclass traits are roles applied to the metaclass. It IS that simple

Re: Metaclass traits

2010-05-10 Thread Christopher Brown
Mike, Let me take a stab as I understand it. Hopefully, some of the other Moosers will correct me if I am wrong: > Are traits and roles the same, here? Yes. Metaclass traits are roles applied to the metaclass. It IS that simple. The register_implementation method tells the class tha

Metaclass traits

2010-05-10 Thread Mike Friedman
Following up on my previous question, I'm reading about metaclass traits in the Cookbook: http://search.cpan.org/~flora/Moose-1.03/lib/Moose/Cookbook/Meta/Recipe5.pod My understanding was that traits were little thingies you hang off attributes. For example, I am using the native