From: Dan Doel Date: 2003-09-14T09:11:16+09:00 Subject: Re: Ruby Object Model bothering me Kurt M. Dresner wrote: >Ok, so I did > >a = Array.new(number, []) > >It's really bothering me that if I do a[i] = n, all of a is now n. > >Is there a graceful way to get around this? > > When I do: a = Array.new(6, []) a[5] = 3 p a[2] I get [] printed out. - Dan