Thread overview
[Issue 23893] DMD linking errors with -betterC
May 05, 2023
mhh
May 09, 2023
RazvanN
May 09, 2023
Richard Cattermole
May 05, 2023
https://issues.dlang.org/show_bug.cgi?id=23893

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxhaton@gmail.com

--- Comment #1 from mhh <maxhaton@gmail.com> ---
Reason number N + 1 why betterC shouldn't exist.

--
May 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23893

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
I would be tempted to make this a compiler error until classes are properly supported in betterC. I just don't see classes could ever compile when they inherit object and a bunch of typeinfo's are generated for them.

How come this code compiles in ldc?

--
May 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23893

Richard Cattermole <alphaglosined@gmail.com> changed:

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

--- Comment #3 from Richard Cattermole <alphaglosined@gmail.com> ---
There are two ways this could work, I haven't really figured out which strategy is in play as RTInfo has the same set of problems.

Either it's just not emitting it since it was disabled (ok, nothing wrong with
that).

Or its triggering emittance at the usage site rather than declaration.

--