Re: Warnings in Euphoria 2.5
- Posted by Robert Craig <rds at RapidEuphoria.com> Jan 31, 2005
- 439 views
Juergen Luethje wrote: > Euphoria 2.5 has the new feature, that the interpreter parses the whole > program before it starts executing it. > This brings the big advantage, that syntax errors will be found more > reliably than in Eu 2.4 and earlier. > > What about the warnings? The following program indicates, that they are > still issued at run-time and not at parse-time: <snip> > So it can depend on the program flow and the input data, whether or not > a warning is shown. Is it possible/desirable to change the behaviour of > the interpreter, so that causes of warnings are detected at parse-time? Warnings are always "detected" at parse time. A long time ago (way before 2.4), warnings were displayed immediately, as the problems were found. However, many programs would clear the screen, or print a bunch of stuff that would make it impossible to see the warnings. So things were changed so that warnings were saved up, and issued as soon as the program terminated. That way they were hard to miss. In 2.5, if you call abort() to terminate your program, the warnings will not be printed. You'll only see them at a "normal" termination, i.e. falling off the end of the main file. I'll fix this so they are printed out, even if you call abort(). Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com