Any takers for http://d.puremagic.com/issues/show_bug.cgi?id=9673?
Rainer Schuetze
r.sagitario at gmx.de
Tue Mar 12 00:07:00 PDT 2013
On 11.03.2013 14:21, Andrei Alexandrescu wrote:
> On 3/11/13 8:34 AM, Timon Gehr wrote:
>> On 03/11/2013 07:51 AM, Rainer Schuetze wrote:
>>> An import is listed in the module info struct as a dependency, if it has
>>> static constructors (or destructors) or if it imports modules that have
>>> static constructors.
>>> If a di-file misses an import, it might not end up
>>> in the imported modules list of an importing module, so the correct
>>> order cannot be determined at runtime.
>>> ( Search the dmd source for "needmoduleinfo", especially
>>> https://github.com/D-Programming-Language/dmd/blob/master/src/toobj.c#L150
>>>
>>>
>>> and
>>> https://github.com/D-Programming-Language/dmd/blob/master/src/import.c#L344
>>>
>>>
>>> )
>>>
>>> Also, you might run into trouble when removing static
>>> constructors/destructors from the di-file because of this.
>>>
>>
>> I see, thanks! IMO this is ridiculous. I'd argue it is an implementation
>> bug and should be fixed.
>
> Rainer, could you please file this to bugzilla?
>
> Thanks,
>
> Andrei
Done: http://d.puremagic.com/issues/show_bug.cgi?id=9697
More information about the Digitalmars-d
mailing list