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?

Thanks,
-- 
Posted via http://www.ruby-forum.com/.