remove obsolete destructors and goto node

From-SVN: r28701
This commit is contained in:
Jason Merrill 1999-08-13 03:48:44 -04:00
parent afe60c51ed
commit 80dabe332a

View File

@ -3150,8 +3150,6 @@ Predefined Macros,cpp.info,The C Preprocessor}).
@menu
* Naming Results:: Giving a name to C++ function return values.
* Min and Max:: C++ Minimum and maximum operators.
* Destructors and Goto:: Goto is safe to use in C++ even when destructors
are needed.
* C++ Interface:: You can use a single C++ header file for both
declarations and definitions.
* Template Instantiation:: Methods for ensuring that exactly one copy of
@ -3318,19 +3316,6 @@ Since @code{<?} and @code{>?} are built into the compiler, they properly
handle expressions with side-effects; @w{@samp{int min = i++ <? j++;}}
works correctly.
@node Destructors and Goto
@section @code{goto} and Destructors in GNU C++
@cindex @code{goto} in C++
@cindex destructors vs @code{goto}
In C++ programs, you can safely use the @code{goto} statement. When you
use it to exit a block which contains aggregates requiring destructors,
the destructors will run before the @code{goto} transfers control.
@cindex constructors vs @code{goto}
The compiler still forbids using @code{goto} to @emph{enter} a scope
that requires constructors.
@node C++ Interface
@section Declarations and Definitions in One Header