[Gambas-devel] Conditional compilation

chintan rao chintanraoh at ...176...
Tue Oct 3 17:50:22 CEST 2006


Hi,

>From: Benoit Minisini <gambas at ...1...>
>To: mailing list for gambas developers < gambas-devel at lists.sourceforge.net
>
>
>I never really think about this feature. I think the a preprocessor
so=hould
>be included inside the compiler, just after or during the tokenization of
the
>source code.
>Note that at the moment, I found no need for a preprocessor in Gambas.
Maybe
>this should be asked first on the mailing-list.

I have not coded much in gambas. This could be one possibility.
You could possibly have .

#IF <classname>
code for classname
#ELSE
"error"
#ENDIF

or we could have
#IFNDEF <classname>
"error"
#ENDIF

This way you could even avoid #define statements.
Does this make it bit like c++/c ?I don't think so.
I think it is simple enough to understand for a Gambas user.
What do you think about this?

yours sincerely
Chintan Rao H
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20061003/841145f2/attachment.html>


More information about the Devel mailing list