On 2/17/07, Phrogz <gavin / refinery.com> 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