🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5767

Re: What namespaces are available?

#5767
From: Mark Brader
Date: Fri, 17 Mar 1989 23:54
32 lines
1895 bytes
Here's what section 4.1.2.1 actually says, in part:

#   All identifiers that begin with an underscore and either an
#   upper-case letter or another underscore are always reserved
#   for any use.
#
#   All identifiers that begin with an underscore are always
#   reserved for use as identifiers with file scope in both the
#   ordinary identifier and tag name spaces.

Karl elected to coin the term "semi-reserved" for the second group,
there being no term defined in the proposed Standard.

4.1.2.1 goes on to describe the identifiers and identifier classes
that are reserved by being specifically mentioned, as opposed to the
syntactically distinguished ones mentioned above, and then says:

#   No other identifiers are reserved.  If the program declares or
#   defines an identifier with the same name as an identifier reserved
#   in that context (other than as allowed by section 4.1.6 [that's
#   things like FILE *fopen(); in place of #include <stdio.h>]), the
#   behavior is undefined.

A footnote notes that you have to be especially careful about macro names
because they "are replaced wherever found, independent of scope and name
space".

All this seems clear enough to me.

Mark Brader	  "I'm not a lawyer, but I'm pedantic and that's just as good."
utzoo!sq!msb, msb@sq.com				       -- D Gary Grady
Technical Details
Message-ID: <1989Mar17.185431.9402@sq.com>
Path: arc1-ca.pugleaf.net!utzoo!sq!msb
References: <11975@haddock.ima.isc.com> <528@garcon.cso.uiuc.edu> <11982@haddock.ima.isc.com> <535@garcon.cso.uiuc.edu> <832@Portia.Stanford.EDU> <543@garcon.cso.uiuc.edu> <9856@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Checksum: 55258
Lines: 32
Path: arc1-ca.pugleaf.net!utzoo!sq!msb
From: msb@sq.com (Mark Brader)
Date: Fri, 17-Mar-89 18:54:31 EST
Message-ID: <1989Mar17.185431.9402@sq.com>
Newsgroups: comp.std.c
Subject: Re: What namespaces are available?
References: <11975@haddock.ima.isc.com> <528@garcon.cso.uiuc.edu> <11982@haddock.ima.isc.com> <535@garcon.cso.uiuc.edu> <832@Portia.Stanford.EDU> <543@garcon.cso.uiuc.edu> <9856@smoke.BRL.MIL>
Reply-To: msb@sq.com (Mark Brader)
Organization: SoftQuad Inc., Toronto
Keywords: namespace, reserved, semi-reserved