This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Nonterminating exceptions with longjump?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]