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

IchorDev zxinsworld at gmail.com
Mon Jan 20 08:04:20 UTC 2025


On Sunday, 19 January 2025 at 17:33:33 UTC, Paul Backus wrote:
> On Saturday, 18 January 2025 at 07:31:40 UTC, Walter Bright 
> wrote:
>> Proposed by Manu https://github.com/dlang/dmd/issues/20644
>>
>> PR: https://github.com/dlang/dmd/pull/20728
>
> Why not just add a simple `reinterpretCast!T` helper function 
> to Phobos or druntime?

Greater cost to compile time? Generally language features for 
commonly used patterns are pretty desirable.


More information about the dip.development mailing list