Article View: comp.std.c++
Article #869typedefnames as classnames
From: Steven Kearns
Date: Sun, 24 Feb 1991 18:33
Date: Sun, 24 Feb 1991 18:33
22 lines
1183 bytes
1183 bytes
In ARM 7.1.3, p. 107, it is indicated that a typedefname that names a class
is a className. I assume that this means it can be used wherever a classname
can be used. There is one exception, though: such a typedefname cannot
be used after a struct,union,class keyword.
My interpretation of this is as follows:
struct S;
typedef S S_syn;
struct S_syn { .... }; // error
{ // enter a new scope
struct S_syn { ... }; // no error, redefining S_syn
}
If my interpretation is correct, the text should be ammended to read something
like "such a typedefname cannot be used after a struct,union,class keyword,
IN THE SAME SCOPE".
********************************************************
* Steven Kearns ....uunet!softrue!kearns *
* Software Truth softrue!kearns@uunet.uu.net *
********************************************************
Technical Details
Message-ID:
<10.UUL1.3#8618@softrue.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!hybrid!scifi!bywater!uunet!softrue!kearnsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!hybrid!scifi!bywater!uunet!softrue!kearns From: kearns@softrue.UUCP (Steven Kearns) Newsgroups: comp.std.c++ Subject: typedefnames as classnames Message-ID: <10.UUL1.3#8618@softrue.UUCP> Date: 24 Feb 91 18:33:39 GMT Organization: Software Truth Lines: 22