I'm trying to pass variables by reference. eg
function a(x,y) {
x = 23;
y = 15;
}
function dummy() {
var xx,yy;
a(xx,yy);
}
so that xx and yy will have the values assigned by function a.
In pascal you would use procedure a(var x,y: Integer); and in C you would have void a(int &x,&y); but how is this done in monkeyc ?
I couldnt find anything in the docs that even indicates passing by reference can be done, but I'm hoping it can.
TIA Andrew