ref parameter qualifier and static arrays

Paul via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 10 04:18:19 PDT 2015


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...



More information about the Digitalmars-d-learn mailing list