in reply to Re^3: returning ref to static var vs. copying
in thread returning ref to static var vs. copying
... and 4. Sometimes, you just WANT to get/return a reference to a fresh copy, e.g. because you don't want the caller to damage the original array.
Alexander
|
|---|