On Sat, Aug 14, 2010 at 3:17 AM, Chan Nguyen <cnguyen / rapattoni.com> wrote:
> Hi everyone,
> In C++, in order to modify a variable being passed into a function we do
> [code]
> void func( int& x )
> {
> =A0 =A0x =3D 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-objec=
ts


--=20
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