Passing Reference Types by Value
Is it possible to pass an array (a reference type) as a parameter to a function by value? I simply want to pass a copy of an array through a function argument list - at present the function is destroying the array.
I could, of course, create a copy of the array and pass that through the argument list, but I feel that there must be a better solution.
Semiloof
|