From: "Iñaki Baz Castillo" Date: 2008-04-25T01:26:26+09:00 Subject: Re: Pointer concept in Ruby ? 2008/4/24, Iñaki Baz Castillo : > No, that's not true. Demostration: > > array=[000,111,222,33] > => [0, 111, 222, 33] Sorry, it was: a=[0,1,2,3] > a1=a[1] > => 1 > > a[1].object_id > => 345 > > a1.object_id > => 345 > > a1="NEW VALUE" > => "NEW VALUE" > > > a1.object_id > => -606081098 <----------- Has changed !!! > > a[1].object_id <-------- Remains the same > => 345 > > a1 > => "NEW VALUE" > > a[1] > => 1 <----------- Original value not changed -- Iñaki Baz Castillo