[2903] in java-interest
Re: Preprocessor features
daemon@ATHENA.MIT.EDU (Matthew Travis)
Thu Oct 19 20:18:32 1995
Date: Thu, 19 Oct 1995 17:34:56 -0500 (CDT)
From: Matthew Travis <mtravis@ncsa.uiuc.edu>
To: java-interest@java.sun.com
In-Reply-To: <199510191852.OAA00855@park.interport.net>
In actuality, you can use the C/C++ preprocessor to process *any* source
file before compilation, even Java source. The problem with this is that
you lose all pretty formatting and comments as part of the preprocessing.
If you preprocess as part of the compilation process, as is done in C and
C++, then this may not be a significant issue. I was porting some C code
that was so heavily-dependent on the preprocessor, that to remove the
#define's and such would have required basically a rewrite from scratch.
By maintaining the use of the preprocessor, I saved weeks of time. I was
using Borland's stand-alone preprocessor which comes with Borland C++.
-Matt
On Thu, 19 Oct 1995, Michael St. Hippolyte wrote:
> Are there any plans to add conditional compilation, #define macros or
> #pragmas to Java?
>
> ....................................
> \ Michael St. Hippolyte `.
> \ mash@interport.net `.
> \ http://www.interport.net/~mash `.
> ```````````````````````````````````````
>
>
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
>
*******************************************************************************
Another chance to lift my life, free the sensation in my heart
To ride the wings of dreams, into changing horizons
It brings inner peace within my mind,as I'm lifted from where I spilt my life
**** http://void.ncsa.uiuc.edu/~mtravis/ *********** mtravis@ncsa.uiuc.edu ****
I am the "default:" case of a "switch" statement
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com