Forum: Ruby Re: Proposed RCR: Object#replace

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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.