Re: Class Attributes in roles?
[email protected] (Stevan Little)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
On May 19, 2008, at 8:30 PM, Bernardo Rechea wrote: > Grr, It would be quite a learning curve before I would able to > understand > Moose well enough to even try... Do you think at least that having > class > attributes declared in roles is reasonable? No, I don't think it is reasonable. Class attributes are really attributes of the metaclass instance (Dave implements them slightly differently then that, but the effect is the same). When a role is composed into a class, Moose will merge all the attributes and methods defined in the role into the class. It does not however merge all the attributes and methods from the metarole into the metaclass. - Stevan > If it doesn't sound like a stupid > thing to want (which might well be, what do I know), I might even > try some > day. But if its a braindead wish, I'd rather know sooner rather than > later... ;-D > > Bernardo >> >> >> -dave >> >> /*========================== >> VegGuide.Org >> Your guide to all that's veg >> ==========================*/ > >