Topic: Are names beginning with "str" reserved?


Author: cbarron3@ix.netcom.com (Carl Barron)
Date: Wed, 27 Nov 2002 19:42:44 +0000 (UTC)
Raw View
Stefan Ram <ram@zedat.fu-berlin.de> wrote:

>   ISO/IEC 14882:1998(E) refers to ISO/IEC 9899:1990
>   Programming languages C, which reserves certain
>   names in "4.13 Future Library Directions", like,
>   e.g.,
>
>     Function names that begin with str and a
>     lowercase letter (...) may be added to the
>     declarations in the <stdlib.h> header.
>
>   Does this apply somehow to C++ and its <stdlib.h>
>   header? I.e., are names in the global namespace
>   and with external linkage that begin with "str"
>   and a lowercase letter reserved by C++, too?
>
>   I already searched ISO/IEC 14882:1998(E), but was
>   unable to find an explicit clarification of this
>   question.
>
   Yes it does it places all of C90 standard library in namespace std.
Further the standard forbids extending namespace std, outside of the
standardization process, so std::anything_new is non compliant, at this
time.   The global namespace outside of MACROS  defined in the C90
library is not poluted by the standard, meaning strfoulup is not
reserved, but std::strfoulup is not standard either.

---
[ 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                       ]