This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Nonterminating exceptions with longjump?
- From: Andrew Haley <aph at redhat dot com>
- To: Gabor Greif <gabor at mac dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 3 Feb 2003 13:20:43 +0000 (GMT)
- Subject: Nonterminating exceptions with longjump?
- References: <B8A346E4-36FF-11D7-B1B2-000393A34C6C@mac.com>
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.