This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [basic-improvements] try/finally support for c/c++ - more tests
On Thu, Nov 07, 2002 at 05:55:21PM -0800, Mark Mitchell wrote:
> --On Thursday, November 07, 2002 08:52:37 PM -0500 Jason Merrill
> <jason@redhat.com> wrote:
> >On Thu, 07 Nov 2002 17:26:38 -0800, Mark Mitchell <mark@codesourcery.com>
> >wrote:
> >>Except that it also handles asynchronous exceptions, which ours doesn't.
> >>Where we'd get a SIGFPE you get a structured exception in Microsoft's
> >>stuff.
> >
> >That has nothing to do with the semantics of try/finally, which just deals
> >with cleaning up after whatever exceptions do happen to be thrown.
>
> This horse is pretty dang dead, but the point is that people will *expect*
> that the construct behaves the same way as Microsoft's "structured
> exception handling" stuff -- in every way. Part of that is handling
> SIGFPE type events.
Y'know, I don't see why people would think that. It doesn't have
__except or __catch or whatever Microsoft calls it, and we say
explicitly that this is only for pthread_cancel() and for exceptions
thrown by other language runtimes...
zw