debug
Get tol learn about the debug feature of conditional compilation in D.
We'll cover the following...
debug
is useful during program development. The expressions and statements that are marked as debug
are compiled into the program only when the -debug
compiler switch is enabled:
debug a_conditionally_compiled_expression;
debug {
// ... conditionally compiled code ...
} else {
// ... code that is compiled otherwise ...
}
The else
clause is optional.
Both the single expression and the code block above are compiled only when
the -debug
...