What namespaces are available?

T. William Wells bill at twwells.uucp
Mon Mar 13 14:13:53 AEST 1989


In article <543 at garcon.cso.uiuc.edu> mcdaniel at uicsrd.csrd.uiuc.edu (Tim McDaniel) writes:
: karl at haddock.ima.isc.com (Karl Heuer) writes (marked with ">"):
: >     _[a-z0-9][_A-Za-z0-9]*  what I called semi-reserved
:
: This behavior just seems so useless.  It's not a problem for me,
: understand; it's just something I'm scratching my head over and saying
: "What were they thinking of?".
:
: If I use the semi-reserved namespace, I have to "check for actual
: conflicts on my particular system" (with the implementation and with
: other libraries) and can avoid "polluting the namespace that is
: available for portable programs."  I have to check the implementation
: uses because it might be using semi-reserved names.

The difference between the two namespaces is this: the reserved space
can't portably be used in a hosted environment. The semi-reserved
space can, but not for externals. That, however, leaves #defines,
structure fields and tags, enumeration constants and tags, local
variables, and other items with internal or no linkage.

---
Bill
{ uunet | novavax } !twwells!bill
(BTW, I'm going to be looking for a new job sometime in the next
few months.  If you know of a good one, do send me e-mail.)



More information about the Comp.std.c mailing list