From: Florian Gross Date: 2005-01-19T21:16:09+09:00 Subject: Re: value by reference trans. wrote: > Sorry. #succ does not act inplace and nothing does on Fixnum. Of course nothing can change the value of immediate Objects. :) > But I wonder, could Ruby offer something like the VB forms without > violating immutability? Sort of an indirect reference. > Guess I don't understand why it's conidered a negative. See my earlier posting about the lambda { } and Variable[:name] ways of doing this. Ruby itself just treats variables as names for Objects. You can't really refer to a variable itself, you can only refer to the Object it is a name for. That's a surprisingly simple and non-confusing model. I think Ruby itself should not be changed. (Though it would be nice if it had something like Binding.of_caller built-in...)