RichardOnRails wrote:
> a[0][0]=5 => [[5, 0], [5, 0], [5, 0]]

You might want to have a look at the post 
http://al2o3-cr.blogspot.com/2008/08/object-arr.html describing nicely 
some details about pointers in Ruby. Might be a good addition to what 
has already been said here.
-- 
Posted via http://www.ruby-forum.com/.