.di "header" files

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed Nov 14 04:25:42 PST 2007


e-t172 wrote:
[[ .di file includes function body ]]
> 
> I must say I don't understand how this is useful : all it did was strip
> comments and whitespaces. It didn't strip the body of the bar() 
> function, which is what was expected.
> 
> So is this normal, if it is, what is the real purpose of the -H option, 
> and otherwise, how do I make it work correctly ?

IIRC one purpose of "header" files is improve compilation times without 
changing the results of those compilations. That requires (small) 
functions that might be inlined to keep their bodies.
"Bigger" functions should have their bodies removed.



More information about the Digitalmars-d mailing list