in reply to Re^2: "I Only Wanted a Hammer, Not the Whole Toolbox."
in thread "I Only Wanted a Hammer, Not the Whole Toolbox."

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.

  • Comment on Re^3: "I Only Wanted a Hammer, Not the Whole Toolbox."