[Issue 23177] ModuleInfo is not exported on Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 29 08:55:08 UTC 2023


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> ---
The ModuleInfo is necessary for static construction. For a DLL, the static
construction is handled by DllMain. If the ModuleInfo is exported, the user of
the dll will run the static constructors again.

--


More information about the Digitalmars-d-bugs mailing list