Remaining Travis merge-2.064 failure

Christian Kamm via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Jun 10 22:05:06 PDT 2014


On 10.06.2014 14:09, David Nadlinger via digitalmars-d-ldc wrote:
>> Okay. Aside: how does it deal with cycles? Wouldn't no instance be
>> emitted if two modules both instantiate the same function and include
>> each other? (in practice both were emitted for me)
> 
> If ti->instantiatingModule (the module you would like to pull the symbol
> in from) itself also imports at least one of the root modules, then
> importsRoot will be true, and the symbol will still be defined. Exactly
> the same situation will occur (with m/mi swapped) when building what
> currently is ti->instantiatingModule, so you end up emitting that
> template into both modules, as you observed.

Oh, right! Thanks for clearing that up for me.

Cheers,
Christian



More information about the digitalmars-d-ldc mailing list