DIP 45 - approval discussion

Walter Bright newshound2 at digitalmars.com
Sun Nov 10 11:33:53 PST 2013


On 11/10/2013 4:13 AM, Benjamin Thaut wrote:
> Addition: It is necessary to export the module info. Because as soon as you
> import a module and use any part of it, the compiler will reference the module
> info.

Actually, it isn't entirely clear to me why the moduleinfo needs to be exported.

The moduleinfo is needed to run the static ctors/dtors, etc., but that is needed 
by the code internal to the dll that initializes the dll.


More information about the Digitalmars-d mailing list