First Draft: cast(ref T)... as shorthand for *cast(T*)&...
Nick Treleaven
nick at geany.org
Mon Mar 10 16:31:51 UTC 2025
On Tuesday, 25 February 2025 at 12:46:53 UTC, Dukc wrote:
> If anything, we want a library helper function like Paul
> suggested, but I'm slightly reserved even about that. When
> doing reinterpret casts, it's extremely important to understand
> exactly how the cast works. Any abstraction over that always
> tends to more or less hide it.
Looks like an abstraction got added:
https://dlang.org/phobos-prerelease/std_conv.html#bitCast
https://github.com/dlang/phobos/pull/10651
More information about the dip.development
mailing list