Re: Detecting the Eu version
- Posted by Jason Gade <jaygade at yahoo.com> Dec 14, 2004
- 569 views
Jason Gade wrote: > > Juergen Luethje wrote: > > Are we talking about a low-level or a high-level language? > > If Euphoria is a high-level language, then it should for instance say > > something like: > > > > Sorry, code in "thisprog.e" requires Euphoria version 2.5 or later. > > > > Rather than: > > > > syntax error - expected to see an expression, not an > > illegal character > > s = s[2..$] > > ^ > > Regards, > > Juergen > > Obviously this would be the *best* solution. I don't have much hope for its > implementation. > > The 'with 2.5' or whatever would have to be executed before the entire program > is parsed. > It would have to be a compiler directive. Versions prior to 2.5 might still > break > as mentioned earlier in the thread but we would at least solve the problem for > future > versions. Correction: as long as versions 2.5 and up parse the entire file before beginning execution it is the *only* solution other than ignoring syntax errors at compile time. > > -- > > Have you read a good program lately? > > > > > ===================================== > Too many freaks, not enough circuses. > > j. > ===================================== Too many freaks, not enough circuses. j.