Re: error handlling in recursive function
- From: Chad <cdalten@xxxxxxxxx>
- Date: Sat, 31 May 2008 10:03:22 -0700 (PDT)
On May 30, 12:27 pm, rober...@xxxxxxxxxxxxxxxxxx (Walter Roberson)
wrote:
In article <19b77d08-9400-4bcc-b5ef-112545eda...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
user923005 <dcor...@xxxxxxxxx> wrote:
On May 30, 10:17=A0am, David Resnick <lndresn...@xxxxxxxxx> wrote:
Sure, and a fourth is to pass down a pointer to a variable to use forYet another one is to use signal()/raise().
error reporting.
If the routine so invoked does not terminate with longjump
(and longjump was already proffered earlier in the list) then
when the routine returns, execution will resume with the return
of raise() (which will have a value of 0 if successful, non-zero
otherwise.)
signal()/raise() does have the advantage that the invoked routine
is able to access library functions,
I don't get what you mean when you say "signal()/raise() does have the
advantage that the invoked routine is able to access library
functions, "
Can you give an example of this?
Chad
.
- References:
- error handlling in recursive function
- From: pereges
- Re: error handlling in recursive function
- From: Jens Thoms Toerring
- Re: error handlling in recursive function
- From: David Resnick
- Re: error handlling in recursive function
- From: user923005
- Re: error handlling in recursive function
- From: Walter Roberson
- error handlling in recursive function
- Prev by Date: Re: private functions
- Next by Date: Re: Four or Two Bytes?
- Previous by thread: Re: error handlling in recursive function
- Next by thread: Re: error handlling in recursive function
- Index(es):
Relevant Pages
|