🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Steven Kearns Sun, 24 Feb 1991 18:33
typedefnames as classnames
#869
Author: Steven Kearns
Date: Sun, 24 Feb 1991 18:33
22 lines
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 *
********************************************************
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