Re: New pre-processor interface added to Euphoria
- Posted by jimcbrown (admin) Aug 04, 2009
- 1465 views
jeremy said...
It just dawned on me. If someone wants to take on a little project, it would be easy to use euphoria/tokenize.e to tokenize Euphoria source and provide a 3.0 compatability pre-processor. For instance, we have a new keyword named entry. The pre-processor would read in 3.x a variable name "entry" and change it to, say, "entry". Thus, 4.0 could be made to run 3.x apps w/no change what-so-ever.
Jeremy
I think what was meant was changing
entry
into
__entry
which is guarranteed to be unique since 4.0 allows variables to start with an underscore but earlier versions of euphoria do not, so the older 3.0 code can't possibly have another variable with the same name that'd cause a conflict.