From: Roland Mai Date: 2007-05-27T11:12:16+09:00 Subject: Re: Can you make sense of this Array issue ------=_Part_161864_23914539.1180231936592 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Here's my interpretation so far. Array.new(10, []) creates an array with [] being duplicated 10 times. Basically, each [] is a mirror/pointer to the original [] object. Array.new(10) {[]} creates the same array but the difference is that each time [] creates a different object unlike above where the new object was merely a pointer. On 5/26/07, Paul Stickney wrote: > > You might be interested in comparing: > > Array.new(10, []) > and > Array.new(10) {[]} > > ------=_Part_161864_23914539.1180231936592--