[965] in java-interest
Re: Assertions in Java
daemon@ATHENA.MIT.EDU (jim frost)
Tue Aug 15 23:21:06 1995
To: andycarlson@attmail.com (Andrew Carlson)
Cc: java-interest@java.sun.com
In-Reply-To: Your message of "Tue, 15 Aug 1995 11:20:37 EDT."
<winATT-2.5.1-andycarlson-174>
Date: Tue, 15 Aug 1995 09:55:20 -0400
From: jim frost <jimf@world.std.com>
|I'm pretty new to java, but may I be so bold as to make a feature suggestion
|based on my experience with C++.
|
|We have implemented a great deal of C++ code which relies on the presence
|of the preprocessor - a feature which is not present in java. I don't
|consider this too great a loss except for one thing. We have a macro called
|ASSERT which (guess what) blows away the application if the associated
|condition is false, but only in the debug version. A release build generates
|no code for the ASSERT. This is similar to the facility in assert.h but gives
|more diagnostic information.
You might consider using m4 or something like that. There's no reason
you *can't* have a preprocessor, it'll just have to be explicit.
jim frost
jimf@world.std.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com