Forum: Ruby Re: Proposed RCR: Object#replace

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Daniel.Berger (Guest)
on 2005-11-16 22:01
(Received via mailing list)
> >          if o.respond_to? :clone
> >            instance_variable_set(name, o.clone)
> >          end
> >        end
> >      end
> >    end
> How does instance variable duplication qualify as the general
> meaning of "replace"?  It's not even part of the existing
> replace methods.

I didn't actually want instance variable duplication.  All I wanted was
the same bit of memory reused.

- Dan
This topic is locked and can not be replied to.