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