[Issue 24866] Inconsistent behavior in safe checking of conversion to void

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 18 19:00:06 UTC 2024


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

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> ---
Due to placement new, I'm on the side of disallowing conversion to ``void*``
and ``void[]`` in ``@safe``.

We have been relying on a language feature like that not existing and it opens
up a major can of worms to have it.

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

--


More information about the Digitalmars-d-bugs mailing list