Should this work or a bug in compiler?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Nov 7 04:05:20 UTC 2026


You need to think of ref as *v not as v.

So you copied the value out when you declared the variable.

We do have by-ref variables now:

``ref s2 = s.byRef();``

7FFF77B508B0 vs 7FFF77B508B0


More information about the Digitalmars-d-learn mailing list