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

Re: Re: changing object's methods at runtime

by japhy (Canon)
on May 21, 2003 at 15:09 UTC ( [id://259742]=note: print w/replies, xml ) Need Help??


in reply to Re: changing object's methods at runtime
in thread changing object's methods at runtime

That Ruby code is awfully sweet. I'm not sure how to replicate it, since I bet both objects are still technically Dog objects, and yet they have different methods. It's cool, though. Perhaps Perl 6 will allow that.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-03-29 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found