🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5749

Re: What namespaces are available?

#5749
From: Tim McDaniel
Date: Fri, 10 Mar 1989 00:17
36 lines
2414 bytes
In article <11982@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes:
>Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
>	_[a-z0-9][_A-Za-z0-9]*	what I called semi-reserved

I finally located a reference in K&R 2nd edition (p. 241):
    External identifiers that begin with an underscore are reserved
    for use by the library, as are all other identifiers that begin
    with an underscore and an upper-case letter or another underscore.
(Of course, I couldn't find any references to this in the index, or in
the "A2.3 Identifiers" section of the reference manual .... *sigh*)

So, were K&R simplifying the issue, or did X3J11 change its mind after
K&R2 was published, or what?  (Note that I exclude the possibility of
Karl being wrong.  8-)

Assuming that there is "semi-reserved" namespace: what's the point of
separating the namespaces to avoid namespace pollution, and then
designating a polluted namespace?

If I'm writing a pANS C program, I have to avoid semi-reserved names,
because my implementation might be using them.  If I'm writing a
decent implementation for pANS C, I have to avoid using semi-reserved
names, since a pANS C program might be using them, and I need to avoid
gratuitous breakage.

Therefore: semi-reserved names are, in practice, completely useless.

--

             Tim, the Bizarre and Oddly-Dressed Enchanter

Center for      |||  Internet, BITNET:  mcdaniel@uicsrd.csrd.uiuc.edu
Supercomputing  |||  UUCP:     {uunet,convex,pur-ee}!uiucuxc!uicsrd!mcdaniel
Research and    |||  ARPANET:  mcdaniel%uicsrd@uxc.cso.uiuc.edu
Development,    |||  CSNET:    mcdaniel%uicsrd@uiuc.csnet
U of Illinois   |||  DECnet:   GARCON::"mcdaniel@uicsrd.csrd.uiuc.edu"
Technical Details
Message-ID: <535@garcon.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!deimos.cis.ksu.edu!uxc!garcon!uicsrd.csrd.uiuc.edu!mcdaniel
References: <11975@haddock.ima.isc.com> <528@garcon.cso.uiuc.edu> <11982@haddock.ima.isc.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!deimos.cis.ksu.edu!uxc!garcon!uicsrd.csrd.uiuc.edu!mcdaniel
From: mcdaniel@uicsrd.csrd.uiuc.edu (Tim McDaniel)
Newsgroups: comp.std.c
Subject: Re: What namespaces are available?
Keywords: namespace, reserved, semi-reserved
Message-ID: <535@garcon.cso.uiuc.edu>
Date: 10 Mar 89 00:17:01 GMT
References: <11975@haddock.ima.isc.com> <528@garcon.cso.uiuc.edu> <11982@haddock.ima.isc.com>
Sender: news@garcon.cso.uiuc.edu
Reply-To: mcdaniel@uicsrd.csrd.uiuc.edu (Tim McDaniel)
Organization: Center for Supercomputing R&D (Cedar), U. of Ill.
Lines: 36