This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: (lack of) Thread-safe exceptions on AIX (gcc-2.95.1)
- To: dstarner98 at aasaa dot ofe dot org
- Subject: Re: (lack of) Thread-safe exceptions on AIX (gcc-2.95.1)
- From: <llewelly at 198 dot dsl dot xmission dot com>
- Date: Mon, 31 Jan 2000 18:41:06 -0700 (MST)
- cc: gcc at gcc dot gnu dot org
On Mon, 31 Jan 2000, David Starner wrote:
> On Mon, Jan 31, 2000 at 03:45:44PM -0800, Bill Tutt wrote:
> > The Microsoft exception handling in C syntax is described at: (SEH)
> > http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core_exception_handling_topics_.28.seh.29.htm
> >
> > The relavent keywords are: __try, __except, and __finally.
>
> Interesting. Wouldn't it be better just to add C++ exception handling, though?
> It's substantially the same, but C++ EH is more general and has clear effects
> with C++ EH over current implementations. Less of a learning curve for most
> people, and if anyone needs Microsoft EH, it shouldn't be that hard to port
> over.
>
As a C++ programmer, I would prefer the C++ EH syntax and semantics,
assuming EH should be provided as a gnu extension to C. I also think the
C++ syntax is more widely known. It is also more similar to the java
exception syntax. ( catch(...) { throw; } => finally { } is one of the
few changes. (by the way, since C does not have destructors, it would
be nice if the info page section on exceptions for C described
catch(...) { throw; } , as every C programmer that uses exceptions will
need to know about it. ) )