Peter Scott wrote:
> At 11:21 AM 8/24/00 -0700, Glenn Linderman wrote:
> >By building up a
> >non-fatal error handling technique on top the existing fatal error
> >handling technique, you are forcing code that assumes it will die to
> >behave differently, when you wrap a try block around it. Now it will only
> >"maybe" die.
>
> There are no existing fatal exceptions. You can call die as much as you
> want, but if your caller has wrapped you in an eval block, tough. RFC 88
> does not change this at all.
You are just playing with words.
Remember, Perl derives from English, as much as from other languages. die
means "fatal error. Stop the program". $SIG{__DIE__} is documented that the
original intention was just to have it happen before the program exited because
of a fatal error.
Just because there is a method, eval, that can be used to trap fatal errors
doesn't mean that they shouldn't be called fatal, or shouldn't be called
errors.
And just because there is a method that can be used to trap fatal errors
doesn't mean that it should be used for non-fatal errors. If you want to do
that, you should invent one, like RFC 119 does.
> --
> Peter Scott
> Pacific Systems Design Technologies
--
Glenn
=====
There are two kinds of people, those
who finish what they start, and so
on... -- Robert Byrne
_____NetZero Free Internet Access and Email______
http://www.netzero.net/download/index.html