[Issue 20248] Module constructors in executable called twice, never in loaded shared library
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 29 16:11:06 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20248
--- Comment #2 from kinke <kinke at gmx.net> ---
Further tests have shown that with DMD, the ModuleInfos of modules contained in
both executable and library are apparently resolved to the executable's.
E.g., versioning out the module ctor in `modcon2.d` for the library still leads
to it being invoked when loading the library; the opposite case, versioning it
out for the executable, means it's not invoked at all.
--
More information about the Digitalmars-d-bugs
mailing list