debug & optimization

bearophile bearophileHUGS at lycos.com
Thu Jun 20 16:08:58 PDT 2013


Charles Hixson:

> I've documented my code that this is a noop unless debug is 
> true, but
> I'm not really sure that's correct, or whether there would be a 
> function call

At a low optimization level probably dmd keeps the call to the 
empty function. At a high optimization level the call probably is 
optimized away.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list