From: RK Sentinel Date: 2009-01-22T04:19:26+09:00 Subject: Re: String doesnt auto dup on modification > - Do you habitually dup() your string ? > > Is there some clean way of handling this that I am missing. To continue: In some critical places in my app I had done: def set_value str @buffer = str.dup end def get_value @buffer.dup end Is this the norm? Do you do this generally, to avoid accidental changes ? -- Posted via http://www.ruby-forum.com/.