From: Dmitry Regent Date: 2008-04-19T04:33:48+09:00 Subject: Re: how to change objects in heap? > > a = [10] > b = a > c = a > > a[0] = 20 > puts b[0] > puts c[0] > > --output:-- > 20 > 20 This way you are correcting existed object. But if you will do a = Array.new a => [] but! b = [20] c = [20] I want to get C++ analog in ruby for operation with pointer. When i can destract object and constract new with this pointer. -- Posted via http://www.ruby-forum.com/.