Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Moo role subclassingby Laurent_R (Canon) |
on Feb 24, 2016 at 17:52 UTC ( [id://1156043]=note: print w/replies, xml ) | Need Help?? |
The whole point about roles is that they don't belong to an inheritance hierarchy and avoid thus the trouble sometimes associated with complex inheritance trees. Roles are composed into classes (and perhaps even, I do not know in the case of Moo, into object instances), but they don't inherit not can be subclassed.
If you need inheritance and subclassing, use a class instead.
In Section
Seekers of Perl Wisdom
|
|