Re: Detecting the Eu version
- Posted by irv mullins <irvm at ellijay.com> Dec 13, 2004
- 568 views
Igor Kachan wrote: > > Irv, it works for me just now, I just do not want run my program > with interpreter v2.4 if I got the error message that it requires 2.5 > only. Then I just comment one line and run it on 2.5. > > Some people are strange here, it works just now, but they want > to force Rob to implement new feature, rewrite docs etc. > Then I need retranslate all these docs into Russian etc. > > For what? For a feature, which works fine just *now*? I suppose you are talking about your routine: > > There is some universal method - all ex.exes, exw.exes, exus, ec.exes etc > > have the unique lengths. > > > > So, you can detect the version with something like to: > > > > > > global function version(sequence name, atom EXE_Length) > > name = machine_func(22, name) -- dir info > > if name[1][3] = EXE_Length then > > return 1 > > else > > return 0 > > end if > > end fubction > > Explain, please, how this is supposed to work after the file size of Euphoria 2.5 changes (as it certainly will, probably more than once, as Rob fixes bugs). Explain, please, how this allows "2.5 or better" to be implemented. Do you somehow know the file size(s) of all future versions of Euphoria? Irv