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 reply to Re^3: "I Only Wanted a Hammer, Not the Whole Toolbox."
by chromatic
in thread "I Only Wanted a Hammer, Not the Whole Toolbox."
by luis.roca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |