🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5750

Re: What namespaces are available?

#5750
From: Chuck Karish
Date: Sat, 11 Mar 1989 22:13
32 lines
2031 bytes
In article <535@garcon.cso.uiuc.edu> mcdaniel@uicsrd.csrd.uiuc.edu
(Tim McDaniel) wrote:
>In article <11982@haddock.ima.isc.com> karl@haddock.ima.isc.com
(Karl Heuer) writes:
>>	_[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.

>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-)

	Karl's right about the existence of a special class of names.
	These names are reserved for possible use by the
	implementation, according to Section 4.1.2 of the May, 1988
	draft of the dpANS.  If they are used in application programs,
	the behavior is undefined.  They are, however, usable by
	programmers.

	If you're writing NON-PORTABLE library functions to support
	applications in a specific hardware/software environment, you
	can use this namespace (after checking for actual conflicts on
	your particular system) without polluting the namespace that is
	available for portable programs.


	Chuck Karish	karish@denali.stanford.edu
			hplabs!hpda!mindcrf!karish
			(415) 493-7277
Technical Details
Message-ID: <832@Portia.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!rutgers!ucsd!ucbvax!decwrl!shelby!Portia!forel!karish
References: <11975@haddock.ima.isc.com> <528@garcon.cso.uiuc.edu> <11982@haddock.ima.isc.com> <535@garcon.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!rutgers!ucsd!ucbvax!decwrl!shelby!Portia!forel!karish
From: karish@forel.stanford.edu (Chuck Karish)
Newsgroups: comp.std.c
Subject: Re: What namespaces are available?
Keywords: namespace, reserved, semi-reserved
Message-ID: <832@Portia.Stanford.EDU>
Date: 11 Mar 89 22:13:55 GMT
References: <11975@haddock.ima.isc.com> <528@garcon.cso.uiuc.edu> <11982@haddock.ima.isc.com> <535@garcon.cso.uiuc.edu>
Sender: USENET News System <news@Portia.stanford.edu>
Reply-To: karish@forel.stanford.edu (Chuck Karish)
Organization: Stanford University School of Earth Sciences
Lines: 32