in reply to Re^2: Preserve the value of original array
in thread Preserve the value of original array

Yes, that's fine. But please also take note of bobf's comments below :)

Update:Actually, I misread what you said there. Either way is okay. You can either take a copy of the reference, or dereference it into another array. But again, as bobf already pointed out in his update - the simplest way is to just pass the array (rather than a reference) - and then take a copy of that.

  • Comment on Re^3: Preserve the value of original array