Re: Detecting the Eu version

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

On Tue, 14 Dec 2004 10:57:06 +0000, Pete Lomax
<petelomax at blueyonder.co.uk> wrote:

> It doesn't matter how you code it, it won't get executed in time.
> (It was possible in 2.4, it is not in 2.5) The user will see eg:
> 
> C:\EUPHORIA\INCLUDE\FILE.E:183
> Syntax error - expected to see an expression, not an illegal character
>           find(path_name[$], {' ', SLASH}) do


This: 
constant VERSION = 2.4
sequence t = {1,1,1,1,1,1,1,1}
if VERSION = 2.5 then
       ? t[2..$]
else
       ? t[2..length(t)]
end if

Doesn't even work in 2.4.
Distancing the branches enough so that 2.4 doesn't 'see' the problems
still requires a kludge, like putting them inside a function called by
the branch.

-- 
MrTrick

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

Search



Quick Links

User menu

Not signed in.

Misc Menu