niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » C++
Concepts of classes and objects in C/C++
Post new topic   Reply to topic Page 3 of 3 [32 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3
Author Message
roberts.noah@gmail.com
*nix forums Guru


Joined: 11 Sep 2005
Posts: 795

PostPosted: Tue Jul 18, 2006 5:54 pm    Post subject: Re: Concepts of classes and objects in C/C++ Reply with quote

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

PostPosted: Tue Jul 18, 2006 6:42 pm    Post subject: Re: Concepts of classes and objects in C/C++ Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 3 of 3 [32 Posts] Goto page:  Previous  1, 2, 3
View previous topic :: View next topic
The time now is Thu Jan 08, 2009 6:42 am | All times are GMT
navigation Forum index » Programming » C++
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Bug#379048: ITP: libcsoap -- library in C for SOAP networ... Rudi Cilibrasi devel 0 Thu Jul 20, 2006 7:30 pm
No new posts Warning when new attributes are added to classes at run time Matthew Wilson python 7 Wed Jul 19, 2006 8:42 pm
No new posts How to use a module's @EXPORT array to document its expor... Henry Law Perl 7 Wed Jul 19, 2006 4:52 pm
No new posts shared objects cannot be overwritten even though the proc... prashantarane@gmail.com AIX 3 Wed Jul 19, 2006 6:33 am
No new posts Partial classes Sanjay python 26 Wed Jul 19, 2006 6:10 am

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
[ Time: 0.2249s ][ Queries: 16 (0.1473s) ][ GZIP on - Debug on ]