Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by chromatic (Archbishop)
on May 03, 2011 at 02:17 UTC ( #902613=note: print w/replies, xml ) Need Help??


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

... since Perl has no real way to tell the difference between a method and a function...

Maybe yours doesn't, but I have a patched version of Perl 5.13 right here which does!

  • Comment on Re^2: A couple questions on Moose::MOP::Class

Replies are listed 'Best First'.
Re^3: A couple questions on Moose::MOP::Class
by John M. Dlugosz (Monsignor) on May 03, 2011 at 04:32 UTC
    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?

      I added a method keyword.

        That is cheating :)

        -stvn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-10-16 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?