From: Xavier Noria Date: 2010-11-12T16:32:44+09:00 Subject: Re: what's an object? On Friday, November 12, 2010, zuerrong wrote: > Hi Brian, > > I just tested what you said, the result is opposite, a is changed. Point is a holds a reference, and that one can't be changed. You can change the state of the object it points to if it is mutable, but the string object is the same when the method returns because Ruby has pass by value semantics. I wrote a post about this a while back: Ruby, C, and Java are pass-by-value, Perl is pass-by-reference http://advogato.org/person/fxn/diary/534.html Sent from my iPad