Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939331]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found