Re: Detecting the Eu version
- Posted by "Igor Kachan" <kinz at peterlink.ru> Dec 15, 2004
- 570 views
Me wrote: > Juergen Luethje wrote: > > [snip] > > > Yes, the feature would have to be implemented now in Eu 2.5. Otherwise > > for the Eu 2.5 interpreter (as it currently is) *there is no other way > > than crashing*, when it will try to run source code that contains > > keywords which were introduced in Eu 2.6 or later. > > Any program requires installing and testing, if it is set up > on a new machine. > Why not to have a forced artificial crash to avoid improper > future using of a given program? > Open code programs are for programmers, not for incompetent public. Ok, there is the very old and good command in Euphoria - 'with'. Try please :
with ! -- add here needed comments to guide user in proper direction -- code to adjust with ! -- add here other comments -- code to adjust
You'll get crashes with the error messages: unknown with/without option with !-- your directional comments Force user to correct your program as it is suitable for concrete user's machine, platform, OS version, videocard, processor speed, interpreter version, needed EU libs, RAM size, HD size, start directory, dll version, EUDIR, EUINC, cr/lf, cr, lf, EOF, language, window size ... all you need to get your program working and nice. I think, EUPHORIA is a great language, JUST NOW, isn't it? Thanks Juergen for your question! Regards, Igor Kachan kinz at peterlink.ru