From: Joel VanderWerf Date: 2002-02-20T10:44:21+09:00 Subject: Re: Changing String Without Changing The Address Songsu Yun wrote: > > Hi, > Based on what I have read, it seems that assignment just change the string > variable to point to the new string object. > Is it possible to just change the contents of a string object with the > string variable still pointing to the same string object ? > Thanks. irb(main):001:0> x = y = "foo" "foo" irb(main):002:0> x.replace "bar" "bar" irb(main):003:0> y "bar"