Waooo...

I think you are a little bit expeditive on this one !

I really think #ifdef are a very important thing in C / C++, and I
missed so much in any other languages I am using !

Using static / constant data can't achieve the same thing : for
instance you can't have different data in a class without ifdef...
It makes programs more difficult to read, but you really can switch
from different versions of your programs much more easily, and it's a
real gain of time !

Emmanuel
http://androidblogger.blogspot.com/
http://www.alocaly.com/

On Mar 30, 12:36 pm, Bob Kerns <r...@acm.org> wrote:
> You do not do that in Java.
>
> I suggest you should not do that in C++, as there are better ways to
> do it.
>
> I suggest you do not use C.
>
> On Mar 30, 2:57 am, Dilip Dilip <dileep2m...@gmail.com> wrote:
>
>
>
> > Hi All,
> >  How to do conditional compilation in JAVA.
>
> > something like in C, C++ :
>
> > #ifdef TRUE_CONDITION
>
> > #else
>
> > #endif
>
> > Thanks and Regards,
> >   Dileep

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to