Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: adding temporary method to a class

by jdporter (Paladin)
on Sep 20, 2006 at 17:53 UTC ( [id://573962]=note: print w/replies, xml ) Need Help??


in reply to Re^2: adding temporary method to a class
in thread adding temporary method to a class

The approach shown above is a nice "lightweight" solution. If you wanted to be more industrial-grade about it, you could make a derived class which adds the new method. Delegation is another possibility.

We're building the house of the future together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found