C
Chan Nguyen
Hi everyone,
In C++, in order to modify a variable being passed into a function we do
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,
In C++, in order to modify a variable being passed into a function we do
Code:
void func( int& x )
{
x = 10;
}
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,