Re: Detecting the Eu version
- Posted by Jason Gade <jaygade at yahoo.com> Dec 15, 2004
- 544 views
Igor Kachan wrote: > > 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 : > > }}} <eucode> > with ! -- add here needed comments to guide user in proper direction > -- code to adjust > with ! -- add here other comments > -- code to adjust > </eucode> {{{ > > 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 > > You are right, Igor. I wish that Microsoft would include a feature like this in Office so that I could manually edit the executable when I have the wrong version of the operating system on my computer. I tried the with example you printed above. I couldn't include a '!' in the with statement unless I wanted the program to crash every time. Unless that is what you intended. ===================================== Too many freaks, not enough circuses. j.