First Draft: cast(ref T)... as shorthand for *cast(T*)&...

Walter Bright newshound2 at digitalmars.com
Mon Jan 20 23:11:46 UTC 2025


On 1/20/2025 2:07 AM, Juraj wrote:
> We now have local `ref`, and that makes this syntax a cognitive burden.

Think of `cast(ref int)f` as "refer to `f` as if it were an `int`" and it will 
make perfect sense.


More information about the dip.development mailing list