Do you know where your variables are? | |
PerlMonks |
Re^3: "I Only Wanted a Hammer, Not the Whole Toolbox."by chromatic (Archbishop) |
on Nov 21, 2011 at 21:39 UTC ( [id://939331]=note: print w/replies, xml ) | Need Help?? |
roles are just MI without using the word MI ... except for compile-time resolution and composition and allomorphism. Perl won't tell you you're inheriting two identical named methods. A real implementation of roles solves this problem. what if we want to use two roles that both use methods with the same name? You get a compile-time error and must disambiguate the conflict yourself. Improve your skills with Modern Perl: the free book.
In Section
Meditations
|
|