From: Phlip Date: 2007-07-27T23:04:59+09:00 Subject: Re: How to pass arguments by reference in a function Robert Klemme wrote: > I think "pass by reference" is not the proper term because that would > imply that you could change a variable in the calling scope, i.e. you > could do > > def magic(x) x = 10 end > foo = 1 > puts foo # prints 1 > magic(foo) > puts foo # prints 10 > > which you can't. Working backwards from your example, that is the definition of an "immediate value". Violent agreement achieved! -- Phlip http://www.oreilly.com/catalog/9780596510657/ ^ assert_xpath http://tinyurl.com/23tlu5 <-- assert_raise_message