From: Martin DeMello Date: 2007-02-17T20:12:01+09:00 Subject: Re: Array funkiness? On 2/17/07, Phrogz wrote: > You basically asked Ruby to do: > b = Array.new > a = [b,b,b,b,b,b,b,b,b] > so modifying any particular instance modifies them all. And the reason a[0] += [i] works is that internally it gets converted to a[0] = a[0] + i, so that it returns a different object altogether. martin