From: Gone Sail Date: 2007-09-19T21:55:28+09:00 Subject: Re: The meaning of a = b in object oriented languages Ben Finney wrote: > Summercool writes: > >> I just want to confirm that in OOP, if a is an object, then b = a is >> only copying the reference. > > Whether the language is OO or not has no bearing on this question. The > semantics of the assignment operator can and do differ between > languages, orthogonal to whether OOP is involved. true enough. the copy mechanism of a language that uses garbage collection has no concept of an address .. therefore can only copy the reference. -- Posted via http://www.ruby-forum.com/.