Force lvalue (`cast(ref)`)

Juraj junk at vec4.xyz
Wed Jan 22 09:39:11 UTC 2025


On Wednesday, 22 January 2025 at 09:02:14 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> Why can we not make this "just work" without extra syntax?
>
> I.e.
>
> ```d
> void func(ref int);
> func(2);
> ```

Because there is the curse of preview switches ...
https://github.com/dlang/dmd/pull/17068


More information about the dip.ideas mailing list