Nonterminating exceptions with longjump?

Andrew Haley aph@redhat.com
Mon Feb 3 13:20:00 GMT 2003


Gabor Greif writes:
 > I have a crazy idea for a long time but I did not dare to
 > articulate it till now. I know it is not standard-conformant,
 > but I just want to know whether it would work with g++.
 > 
 > I intend to simulate non-terminating exceptions on top of the
 > g++ exception handling machinery (sjlj-based or
 > table based, whatever).

As I understand it, non-terminating exceptions execute some code and
then either throw another exception or return.  Signals do the same,
at least on systems that support throwing an exception from a signal
handler.

So, in what way are non-terminating exceptions different from signals?

Andrew.



More information about the Gcc mailing list