Re: New keywords: ifdef, elsifdef, end ifdef

new topic     » goto parent     » topic index » view thread      » older message » newer message

Shawn Pringle wrote:
> 
> That would have been useful when win32lib.ew put a string type in their
> library.
> 
> What I meant by my previous post was you could blend the if and ifdef by 
> having the truth value evaluated when you the program gets bound.  Then you
> don't need ifdef.  You could have a version() builtin to get a version number

I think we are running into a limitation of what can be done, feasibly. I see
your point, however, I think it's nearly impossible w/out some huge rewrites.
Currently nothing can be executed until the whole app is translated into IL code.
So, functions that return values or dynamic if statements are currently out of
the question for the potential of omitting code. A new keyword was needed that
would do very limited decision making based on values that are known at parse
time, hence the defined words that are handled at parse time via command line and
using the with keyword (which is a parse time keyword as well).

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu