View Single Post

   
  #3 (permalink)  
Old 01-05-2008, 09:08 AM
StephenRichter@gmail.com
 
Posts: n/a
Default Re: structured exception handling


Paul Pluzhnikov wrote:
> StephenRichter@gmail.com writes:
>
> > Is there exception handling in AIX/Unix/Linux similar to how exceptions
> > are handled in C++?

>
> In what language? Yes, in C++.
>
> > I have a unix programming book by Stevens and a
> > couple of Perl books just arrived and I dont see any mention of
> > throwing and catching exceptions.

>
> Stevens book is all in C, and there is no structured exception
> handling in that language.


Does Unix itself have a call stack and a facility for unwinding that
stack when an exception is thrown? Windows for example uses structured
exception handling that embeds exception handling entries in the call
stack of a thread. On the system I am migrating from, the as400, an
exception is thrown by sending an *escape message from one level of the
call stack to a prior level.

-Steve

Reply With Quote