From: Robert Klemme Date: 2004-11-30T23:52:47+09:00 Subject: Re: Friend class/inner class "Dan Janowski" schrieb im Newsbeitrag news:2CE9ECD8-4254-11D9-AF7F-00039357B54C@3skel.com... > What I am looking for is very similar to a clone. However, instead of > the instance variables referring to the same objects, the variables use > the same reference storage. That's not possible in Ruby. Whatever you do, you end up with two different references to an object. You cannot alias the references so that if a.a changes then copy_of_a.a changes, too. Ruby != C++. Personally I like it the way it is because otherwise side effects will be very hard to track and debug. If you describe the problem you are solving, then maybe we can come up with a suggestion how to do it the Ruby Way(TM). Kind regards robert