DMD 1.038 and 2.022 releases
    Sean Kelly 
    sean at invisibleduck.org
       
    Sat Dec 20 09:45:47 PST 2008
    
    
  
bearophile wrote:
> Walter Bright:
>> Excess isn't the problem, I want to see if import cycles is.
> 
> Generally all the modules in my dlibs import each other. This is nearly unavoidable, if a module contains string functions, and another one contains math stuff, the string module will want to use some math stuff and the math module may need string representations and processing. In the D specs I haven't seen an advice to not use cyclic imports, so I don't want such compiler flag, I prefer a compiler able to manage such cyclic imports efficiently.
Cyclic imports are a bad idea in general because of the impact they have 
on verifiability (unit testing).  But as you say, sometimes they're 
unavoidable.
Sean
    
    
More information about the Digitalmars-d-announce
mailing list