http://www.newton-inc.com/dev/techinfo/qa/qa.htm
2+3
will be replaced with 5
by the compiler.) In the meantime, you need to write your code as clearly as possible without relying too heavily on the ordering of functions inside expressions.kDebugMode
constant in your project and have in your application a statement conditioned by the value of kDebugMode
, the NTK compiler removes the entire if/then statement from your application code when the value of kDebugMode
is NIL. constant kDebugMode := true; // define in Project Data
if kDebugMode then Print(...); // in application code
kDebugMode
constant to NIL, then the compiler strips out the entire if/then statement.