Re: Detecting the Eu version

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

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu