From: matz@... (Yukihiro Matsumoto) Date: 2002-09-11T00:22:58+09:00 Subject: Re: ruby-dev summary 18111-18212 Hi, In message "Re: ruby-dev summary 18111-18212" on 02/09/10, Paul Brannan writes: |Interesting. Is this what "become" does in Smalltalk? It's not. I've heard Smalltalk "become" is too dangerous. # perhaps I have to choose another name. Ideas? |if I want to implement dup/clone for an object in an extension, what is |the correct way to do this so that it will work with both 1.6 and 1.7? define both clone and become, e.g. def become(orig) # copy internal state end def clone c = super c.become(self) end in 1.7 become is called twice, but it should be OK. matz.