On Wednesday 05 October 2005 20:51, waterbowl / gmail.com wrote: > Thx for the replies! > David A. Black wrote: > > Actually there's no copying at all in the original example -- it's > > just a reference to the same object. dup will give you a shallow copy > > (i.e., a different array, but containing the same objects). A different array that contains the same objects is a deep copy. A reference to the same array is called a shallow copy, because the two 'pointers' point to the same physical memory. (jee, can you tell I came to Ruby from C++?)