Whole document tree
    

Whole document tree

Using the GNU Compiler Collection: Destructors and Goto
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3 goto and Destructors in GNU C++

In C++ programs, you can safely use the goto statement. When you use it to exit a block which contains aggregates requiring destructors, the destructors will run before the goto transfers control.

The compiler still forbids using goto to enter a scope that requires constructors.



This document was generated by root on January, 30 2002 using texi2html