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
Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn Fri, 06 Nov 2026 20:31:34 -0800
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