From: Rick DeNatale Date: 2010-08-14T20:09:04+09:00 Subject: Re: Does Ruby have reference parameter? On Sat, Aug 14, 2010 at 3:17 AM, Chan Nguyen wrote: > Hi everyone, > In C++, in order to modify a variable being passed into a function we do > [code] > void func( int& x ) > { >    x = 10; > } > [/code] > > I wonder is there a way to do something like this in Ruby or a similar > idea? If there's no reference type then how would we be able to modify a > varible? http://talklikeaduck.denhaven2.com/2006/09/13/on-variables-values-and-objects -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale