[Issue 22367] Modules compiled with -betterC never generate a ModuleInfo

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 2 06:09:53 UTC 2022


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

--- Comment #16 from Walter Bright <bugzilla at digitalmars.com> ---
Better than turning on/off the ModuleInfo generation, it is better to do or not
do the triggers that cause the ModuleInfo to be generated.

For example, if a static constructor is written, and the ModuleInfo is
suppressed, the program will link but the static constructor will never be run,
causing the resulting program to not behave as expected.

--


More information about the Digitalmars-d-bugs mailing list