From: Gary Wright Date: 2007-03-06T11:45:48+09:00 Subject: Re: Newbie Question On Mar 5, 2007, at 8:40 PM, Dick K. wrote: > What I am really looking for is the concept of lvalue's. There are > many > other situations where they come in handy. Another contrived example > might be: > > a = \array[123]['abc']['def'] > if (some_condition) > return a > a = some_value > > then you don't compute the index for array twice. There is nothing like that in Ruby. You can avoid some of the extra lookups in your example: container = array[123]['abc'] if (come_condition) return container['def'] else container['def'] = some_value The example seems a bit contrived. I think with some more context a better solution might be found. Gary Wright