Re: Detecting the Eu version

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

Unkmar wrote:
> 
> So many of you still don't understand the problem.
> 

What we need is a Version function added to Euphoria that works something like
this:
version_message="This program requires Euphoria Version 2.5 or greater!"

if version("2.5") = 0 then
  abort_parse()
  abort(0)
end if


The version() function would check to see if the version running is less than
the version number passed to it, if so it would print the version_message on
the screen.   The abort_parse() would tell the interpreter not to interpret 
any further in the program.  The interpreter would of course have to check to
see if you were using the version() function and parse it first.

Of course this would only work in the version of Euphoria that the version()
function was added to, and future versions,  but this would not solve the
problem with earlier versions of Euphoria.

Just some wishful thinking I guess.

Later.

Ferlin Scarborough

Learn To Program Games in Free Courses At
http://www.gameuniv.net

My Euphoria Home Page
http://mywebpage.netscape.com/shadetreesoft

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

Search



Quick Links

User menu

Not signed in.

Misc Menu