From: dblack@... Date: 2007-07-26T05:43:24+09:00 Subject: Re: Question - Passing parameters by reference Hi -- On Thu, 26 Jul 2007, Okushi wrote: > I think it's the clearest explanation so far Jason. > > I believe it's a good practice to stop thinking in terms of pointers > and start thinking in terms of objects. > You don't pass a variable by reference, you pass an object. Or... you pass a reference by variable :-) I think it's useful to know that you're passing references around: a = "abc" b = a b << "def" a # "abcdef" vs. immediate values (symbols, integers), though of course it does all indeed converge on objects. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)