www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Debug Statement

I'm just asking for some 'official' clarification on the debug statement
usage.

From my testing it seems that ...

** the "-debug" command line switch is exactly equivalent to "-debug=1". 

** code in the form "debug <statement>" is exactly equivalent to "debug(1)
<statement>"

** code in the form "debug(0) <statement>" means that the <statement> is
always run. The 'debug(0)' has no effect.

-- 
Derek
Melbourne, Australia
19/05/2005 11:09:51 AM
May 18 2005