On Wed, 1 Dec 1999, Ted Neward wrote:

> No--Java lacks a preprocessor like C/C++ had.
>
> That being said, nothing prevents you from *using* the preprocessor
> from your favorite C/C++ compiler....

Can't you get a similar effect by using if's with finals (if they have
a value at compile time, since Java allows blank finals)?  I believe
the compiler will evaluate such if's, and only compile the code that
would actually be executed (conditional compilation).  Or perhaps
these have to be static finals, not just finals.  And maybe only
certain compilers do this, not all of them.


> -----Original Message-----
> From: Hunter Hillegas <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Wednesday, December 01, 1999 9:48 PM
> Subject: OffTopic: Java Language Question
>
> >Is there anything like the C++ convention #ifdef in Java?
> >
>

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to