From: Michal Rokos Date: 2002-09-10T00:31:36+09:00 Subject: Re: ruby-dev summary 18111-18212 Hi, I'm not the right person to answer, but In article <20020909101507.P20993@atdesk.com>, Paul Brannan wrote: > Questions: > > 1) Is this how Object#become is supposed to behave, or is this a > work-in-progress? > > 2) What logic is there in using Object#become to implement copying of > the object? I was under the impression that Object#become was > supposed to "swap" the objects, which would make it hard to use for > copying. > > 3) Why doesn't Object#become copy the instance variables, instead of > having copy_object copy them? please, have look at how is #clone, #dup done in CVS version. Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-