Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: A couple questions on Moose::MOP::Class

by John M. Dlugosz (Monsignor)
on May 03, 2011 at 04:32 UTC ( #902624=note: print w/replies, xml ) Need Help??


in reply to Re^2: A couple questions on Moose::MOP::Class
in thread A couple questions on Moose::MOP::Class

How does it tell? Any sub created in the Package looks the same... how does it know you intend to call it using the arrow-notation dispatch and expect the class or instance as the first parameter?
  • Comment on Re^3: A couple questions on Moose::MOP::Class

Replies are listed 'Best First'.
Re^4: A couple questions on Moose::MOP::Class
by chromatic (Archbishop) on May 03, 2011 at 05:38 UTC

    I added a method keyword.

      That is cheating :)

      -stvn

        Specificity is the only solution to ambiguity.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-10-19 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (76 votes). Check out past polls.

    Notices?