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
  • Should this work... apz28 via Digitalmars-d-learn
    • Re: Should ... monkyyy via Digitalmars-d-learn
    • Re: Should ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to