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]

Re: (lack of) Thread-safe exceptions on AIX (gcc-2.95.1)




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. ) )


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