>>> Venkatesh <[EMAIL PROTECTED]> 27-Apr-00 9:05:06 PM >>>
>hey,
What?
>Is there any way to implement conditional compilation in
>Java as we do in C++
No, it would be nice on the one hand... but on the other it does make
things more complicated and more likely to bomb.
It is possible to do of course. You could run your Java programs
through a C pre-processor (most C compilers have the ability to just
do the macro stage don't they?) or use some other translator based
system.
To support multiple versions the guys who wrote the GNU-Classpath
version of the servlet API implemented a Java pre-processor. It's
GPLed and you can get it from:
http://www.klomp.org/gnujsp
Nic
___________________________________________________________________________
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