From: Williams Williams Date: 2010-09-28T17:47:01+09:00 Subject: 3x3 Array of int, changing one value affects others ruby-1.9.2-head > a = Array.new(3, Array.new(3, 0)) => [[0, 0, 0], [0, 0, 0], [0, 0, 0]] ruby-1.9.2-head > a[0][2] = 1 => 1 ruby-1.9.2-head > a => [[0, 0, 1], [0, 0, 1], [0, 0, 1]] If the values aren't all 0s, a[0][2] behaves correctly. Am I doing something wrong? Thanks. -- Posted via http://www.ruby-forum.com/.