From: Christian Neukirchen Date: 2005-01-20T05:44:25+09:00 Subject: Re: value by reference Florian Gross writes: > 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. I disagree. a simply is an *reference to an* Integer, initalized with 5. Just like String.new("foo") is a String containing "foo", for example. Maybe we could have mutable Integers if they get created with .new? -- Christian Neukirchen http://chneukirchen.org