[Issue 24772] Casting class references to void* should be @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 19 12:40:08 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24772

Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #1 from Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> ---
The only thing you can do once you cast it is cause program corruption.

Is there a benefit to being able to do this in ``@safe`` that I am not aware
of?

--


More information about the Digitalmars-d-bugs mailing list