On Wednesday 05 October 2005 21:57, Gavin Kistner wrote:
> On Oct 5, 2005, at 9:07 PM, Kevin Brown wrote:
> > 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++?)
>
> I would disagree. The terminology I'm used to using and hearing
> states it as David did:
>
> A shallow copy is a new object of the same type holding references to
> the same objects as the original.
>
> A deep copy is a new object of the same type, where each 'child'
> object in the original is (recursively) deep copied.

Which is what I just said minus the recursively.  I apologize for missing that 
crucial piece.  What was originally stated by David was that a different 
array containing the same objects was a shallow copy.  It is not fully deep, 
nor is it fully shallow.  That's all.