This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
extend.texi: node about Destructors and Goto
- To: gcc-patches <egcs-patches at egcs dot cygnus dot com>
- Subject: extend.texi: node about Destructors and Goto
- From: Alfred Minarik <a8601248 at unet dot univie dot ac dot at>
- Date: Thu, 12 Aug 1999 19:01:03 +0200
In the C++ Extensions chapter of
the gcc manual there is a node
about "Destructors and Goto".
I think that it is really confusing
to announce something as
extension, while it is the same
in the C++ standard. Probably
this is a historic leftover.
I would suggest to remove it:
*extend.texi (Destructors and Goto): Remove node.
diff -rc3 old/egcs/gcc/extend.texi new/egcs/gcc/extend.texi
*** old/egcs/gcc/extend.texi Thu Aug 12 07:05:40 1999
--- new/egcs/gcc/extend.texi Thu Aug 12 16:10:18 1999
***************
*** 3150,3157 ****
@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
--- 3150,3155 ----
***************
*** 3317,3335 ****
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
--- 3315,3320 ----
Alfred