gcj -D
Per Bothner
per@bothner.com
Mon Oct 18 10:09:00 GMT 1999
Tom Tromey <tromey@cygnus.com> writes:
> Still, I'm not completely wedded to using "-D". Does anybody else
> care (either way)? Does anybody have a good suggestion for a
> replacement? I chose "-D" because it seemed intuitive. It does at
> compile time what "-D" does for "java" at runtime.
Exactly. The reason for using -D for properties is that is
what JDK does, and there is something to be said for consistency.
The Java approach to selective compilation is:
// Change to false to turn debugging tests off.
public static final boolean DEBUG = true;
....
if (DEBUG) ...;
--
--Per Bothner
bothner@pacbell.net per@bothner.com http://www.bothner.com/~per/
More information about the Java
mailing list