# Re: Proposed RCR: Object#replace

**URL:** <https://www.ruby-forum.com/t/re-proposed-rcr-object-replace/49070>\
**Category:** Ruby\
**Created:** [November 16, 2005, 9:01pm UTC](https://www.ruby-forum.com/t/re-proposed-rcr-object-replace/49070 "2005-11-16T21:01:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel.Berger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Post date:** [November 16, 2005, 9:01pm UTC](https://www.ruby-forum.com/t/re-proposed-rcr-object-replace/49070/1 "2005-11-16T21:01:16Z")

</div>

> > ```
> > 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
