On 26 Dec 96 Henk Hamers said to Bryan Smith...
HH> The way you are using Except is to general. By using your routine you
HH> would trigger to many faults to one routine. The basic concept for the
HH> try Except routine is that you for instance in calculation routines
HH> don't have to check for every line of code you use if an error occurs.
HH> By coding the entiry program in a try except block seems like you
HH> don't trust your program. Try using the try except block only on
HH> critical code in your program.
This is a program that processes a user-written script, and almost all
errors will arise from user scripting errors. Hence it seems appropriate to
route all errors back to the same error routine (by deliberately creating an
exception). The exception-handling routine can then say "you made such and
such an error on line number nnnn of your script." Sorry, no zero-divides
in this program. No number-crunching here, just text-bashing.
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)
|