From: Francois Proulx Date: 2008-11-29T05:34:20+09:00 Subject: [ruby-core:20158] [Bug #800] Problem with Array class Bug #800: Problem with Array class http://redmine.ruby-lang.org/issues/show/800 Author: Francois Proulx Status: Open, Priority: High If you test this simple program, you will see why array should be dup on assignment ... a=1 b=1 c=[a,b] def foo(x) x[0] +=1 x[1] +=1 end d = c e = d f = e foo(f) p c[0],c[1] ---------------------------------------- http://redmine.ruby-lang.org