[Issue 19960] ElementType!(char[]) + betterC = wrong type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 15 06:52:50 UTC 2023


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

Richard Cattermole <alphaglosined at gmail.com> changed:

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

--- Comment #2 from Richard Cattermole <alphaglosined at gmail.com> ---
> Autodecoding is never going to work with betterC, because it uses the GC and throws exceptions. So I don't know how to fix this.

Assert; this affects far too much at compile time to not have it work even if
it would if given the wrong input crash a program.

One option might be value-type exceptions if I ever get around to finishing the
DIP. But I'm not keen on the idea of changing the exception mechanism depending
on compiler flags for code like this, so it would be an all-or-nothing change.

--


More information about the Digitalmars-d-bugs mailing list