Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Remove bless reference or class/package name from method arguments

by dsheroh (Monsignor)
on May 21, 2009 at 09:36 UTC ( #765410=note: print w/replies, xml ) Need Help??


in reply to Re: Remove bless reference or class/package name from method arguments
in thread Remove bless reference or class/package name from method arguments

Static methods have a long history in OOP. Just because it operates at the level of the class without referencing any details of a specific instance doesn't mean it's not tied to the class.
  • Comment on Re^2: Remove bless reference or class/package name from method arguments

Replies are listed 'Best First'.
Re^3: Remove bless reference or class/package name from method arguments
by phaylon (Curate) on May 25, 2009 at 16:07 UTC

    Alright then. I think I still wouldn't want to do this though, but merely out of maintainability issues. Foo::bar and Foo->bar are not the same, and I wouldn't expect them to be. After all, if you'd want to make a method that accepts an instance as first argument as the invocant, it wouldn't work anymore.


    Ordinary morality is for ordinary people. -- Aleister Crowley

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-10-20 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?