Thread View: comp.std.c++
1 messages
1 total messages
Started by Daniel Edelson
Wed, 15 Aug 1990 19:01
explicit call to destructor
Author: Daniel Edelson
Date: Wed, 15 Aug 1990 19:01
Date: Wed, 15 Aug 1990 19:01
33 lines
1473 bytes
1473 bytes
[E&S 90] section 12.4 says that when a destructor is explicitly called its name must be fully qualified: i.e., p->X::~X() rather than p->~X(). The relevant productions in this grammar (for an example that uses ->) are: expression ... cast-expression ... postfix-expression ... name name: qualified-name qualified-name: class-name :: ~ class-name Document X3J16/90-0032, ``Differences Between the C++ Reference Manuals'' (errata in the version of [E&S 90] that was distributed at the March 1990 X3J16 meeting) contradicts this. This document has the production name: ~ class-name This will permit an explicit call to the destructor without use of the fully qualified name. Is the revised document correct or is this an errata in the grammar in the errata list? Daniel Edelson daniel@cis.ucsc.edu (University of California, Santa Cruz) or ...!sun!practic!peren!daniel (Perennial Software, Inc.)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads