Topic: Reserved identifiers is*, mem*, etc?


Author: qx1741@bigfoot.com (Stan Brown)
Date: Mon, 21 Oct 2002 17:26:54 +0000 (UTC)
Raw View
A correspondent questioned a statement in my list of reserved C++
identifiers, and I'd like to check my interpretation with the group.
Here's how I reasoned:

(1) 17.3.1.4 [lib.structure.see.also] says "... this Standard and
the ISO C Standard, which is incorporated into this Standard by
reference".

(2) ISO C89 subclause 7.13 "Future Library Directions" says "All
external names described below are reserved no matter what headers
are included by the program." Then
 7.13.1 lists macros E[A-Z0-9]*
 7.13.8 lists functions str[a-z]*, mem[a-z]*, wcs[a-z]*
 and so forth

>From this I conclude that an ordinary programmer must not create any
such names in the global namespace, regardless which headers are
included.

Am I correct, or if not can you point out my logic error? (Either
way the page needs to be updated, because the statement in the
fourth paragraph of
<http://oakroadsystems.com/tech/cppredef.htm#Groups> is overbroad.
But I'd like to make a correct correction. :-)

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
                                   http://OakRoadSystems.com
C++ FAQ Lite: http://www.parashift.com/c++-faq-lite/
the C++ standard: http://webstore.ansi.org/
reserved C++ identifiers:
http://oakroadsystems.com/tech/cppredef.htm
more FAQs: http://oakroadsystems.com/tech/faqget.htm

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]