GNU Info

Info Node: (gcc-295.info)Destructors and Goto

(gcc-295.info)Destructors and Goto


Next: C++ Interface Prev: Min and Max Up: C++ Extensions
Enter node , (file) or (file)node

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


automatically generated by info2www version 1.2.2.9