This is the mail archive of the gcc-patches@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]

Re: [basic-improvements] try/finally support for c/c++


On Tue, 5 Nov 2002 15:57:18 -0800, Richard Henderson <rth@redhat.com> wrote:

> You probably need to define __finally in terms of destructors
> in order for this to work out properly.  E.g. a finally block
> is the destructor for an anonymous object of an anonymous type.
> Or something.  Perhaps Jason or Mark could help here?

The code in the finally block is run on exit from the try block, except
that exiting a try block with a corresponding finally block via longjmp or
computed goto has undefined behavior.

Jason


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