Required to link windows header modules (?)
    Sean Kelly 
    sean at f4.ca
       
    Sun Jun 11 21:12:28 PDT 2006
    
    
  
Derek Parnell wrote:
> 
> Can you give me the algorithm to use to detect that a module is a 
> 'header' or not? Maybe if I had such an algorithm I might be able to 
> implement it.
It probably isn't possible to come up with a general solution.  But I 
imagined that if the compiler could determine that no object level code 
generation were required (ie. the module contained only type definitions 
and inlinable code) then it could be assumed to be a header.  But of 
course what's inlined varies from compiler to compiler, and then there's 
the issue of static ctors for structs and such.  Being aware of .di 
files as build is now is probably the best and easiest solution.
Sean
    
    
More information about the Digitalmars-d-bugs
mailing list