From: John Mettraux Date: 2007-01-27T10:30:20+09:00 Subject: Re: String.insert newbie question On 1/27/07, Marco Guiseppe wrote: > Jason Mayer wrote: > > >> check it out in irb. > > > > > Hope that helps. > > Thanks for clearing that up, didn't know about object_id. Is this > behaviour common in programming languages? Seems weird to me. It's not weird if you consider : customer0 = Customer.new("John", "Doe") customer1 = customer0 customer0.first_name = "Paul" puts customer1.first_name customer0 and customer1 points to the same instance. Java strings are misleading. Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org