|
|
|
|
|
|
| Author |
Message |
roberts.noah@gmail.com *nix forums Guru
Joined: 11 Sep 2005
Posts: 795
|
Posted: Tue Jul 18, 2006 5:54 pm Post subject:
Re: Concepts of classes and objects in C/C++
|
|
|
Noah Roberts wrote:
| Quote: | -- Each name that contains a double underscore (__) or begins with an
underscore followed by an upper case letter (2.11) is reserved to the
implementation for any use.
|
Interestingly I believe this is an error in the standard (referring to
the reference to 2.11). 2.11 is not about characters at all but about
keywords and makes no mention of upper/lower case. 2.10 contains text
mentioning significance of case. 2.13.2 is about character literals
but also does not mention case. There is no 17.2.11. My bet is that
is supposed to be 2.10 referring to:
"An identifier is an arbitrarily long sequence of letters and digits.
Each universal-character-name in an identifier shall designate a
character whose encoding in ISO 10646 falls into one of the ranges
specified in Annex E. Upper- and lower-case letters are different.
All characters are significant..." |
|
| Back to top |
|
 |
Daniel T. *nix forums Guru
Joined: 09 Mar 2005
Posts: 583
|
Posted: Tue Jul 18, 2006 6:42 pm Post subject:
Re: Concepts of classes and objects in C/C++
|
|
|
In article <1153244797.290164.229040@b28g2000cwb.googlegroups.com>,
"Noah Roberts" <roberts.noah@gmail.com> wrote:
| Quote: | It depends on the scope of the name. In global scope ANY name that
begins with an underscore is reserved. Other scopes anything that
begins with __ or with _ and an upper case letter. Your quote:
17.4.3.1.2 Global names
Certain sets of names and function signatures are always reserved to
the implementation:
-- Each name that contains a double underscore (__) or begins with an
underscore followed by an upper case letter (2.11) is reserved to the
implementation for any use.
-- Each name that begins with an underscore is reserved to the
implementation for use as a name in the global namespace. 165)
165) Such names are also reserved in namespace ::std (17.4.3.1)
|
Thanks. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 6:42 am | All times are GMT
|
|
Bankruptcy | Debt Consolidation | Xbox Mod Chip | Xecuter 3 Mod Chip | Personal Loans
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|