From: Kyle Schmitt Date: 2008-10-31T03:54:43+09:00 Subject: Re: Bug or not a bug? array*=int On Thu, Oct 30, 2008 at 7:22 AM, Stefan Rusterholz wrote: > As mentioned by others, shallow is the default (also to my knowledge in > most OO languages). > The moment you wish for deep copy is usually the moment you should > consider writing a proper class instead of deeply nesting > arrays/hashes/... > > Regards > Stefan Stefan, while I agree that in general you should write a proper class, the case I was talking about is a completely valid and normal use of multi-dimensional arrays in ruby. I'm guessing that duplicating a row in an array is not a rare occurrence either. I was just saying that maybe a mention of this should be added to the standard docs, as it's a common pitfall. Bits are cheap :) common pitfalls should be noted all over the place in the docs. --Kyle