2 ms·
The point was, that there is a language close to java which can pass objects by value or by reference. (It passes object references by value or by reference if
by viraptor 12y ago
The point was, that there is a language close to java which can pass objects by value or by reference. (It passes object references by value or by reference if you want to call it like that)
To pass an object by reference, it looks exactly like C#'s out/ref parameter.
void function(ref SomeClass arg) {
arg=null;
}
var a=new SomeClass();
function(a);
// now a is null
Which is different from what happens without ref. (or by default in Java)