Should this work or a bug in compiler?
An
home at home.com
Sat Nov 7 20:09:23 UTC 2026
On Saturday, 7 November 2026 at 04:05:20 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> 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
`auto` should be extended support such syntax without the need of
spell out `ref` storage
More information about the Digitalmars-d-learn
mailing list