From: Eero Saynatkari Date: 2011-05-16T05:06:44+09:00 Subject: [ruby-core:36206] [Ruby 1.8 - Bug #4699] Arrays - affectation Issue #4699 has been updated by Eero Saynatkari. This is a feature, not a bug. ---------------------------------------- Bug #4699: Arrays - affectation http://redmine.ruby-lang.org/issues/4699 Author: Cheikh Sidya CAMARA Status: Open Priority: Normal Assignee: Category: Target version: Ruby 1.8.7 ruby -v: ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] a = [1,2,3] b = a b[1] = 10 the content of a : [1, 10, 3] why the variables a and b point on the same space ? a.object_id = b.boject_id -- http://redmine.ruby-lang.org