On Wednesday, 9 September 2015 at 20:35:53 UTC, anonymous wrote:

When you pass a slice (without ref), what's actually passed is a pointer and length. The contents are not copied. That means, when you alter an array element, the change will be done the original, even without ref:

Thanks both.

I see, temporary variable and no ref will do the job and I suppose it's better than just using a global...

Reply via email to