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:??;

  • Comment on Re: Re: changing object's methods at runtime