From: Austin Ziegler Date: 2005-01-20T04:48:21+09:00 Subject: Re: value by reference On Thu, 20 Jan 2005 03:47:38 +0900, Mohammad Khan wrote: > On Wed, 2005-01-19 at 13:41, Florian Gross wrote: > > Mohammad Khan wrote: > > > It would be great if we can do > > > a = Integer.new(1) > > > b = Integer.new(2) > > > c = Integer.new(3) > > Which would be Objects whose values can be changed? > > I don't know, I think I would find it confusing if I'd do five = > > Integer.new(5); some_method(five) and if after that five * five would > > not be 25. > In this instance it would be confusing. > But using this concept... > I would be able to do what I wanted to do (please see my original posting) Which gets right back to the original question: *Why* do you want to be able to do that? Is there not something else that you can perhaps do to improve your design that doesn't require this, since it's not really a supported mode of operation in Ruby? -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca