home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,614 of 33,346   
   red floyd to Frank Bergemann   
   Re: problem with function calling tracke   
   04 Nov 11 01:33:17   
   
   f96a1e7a   
   From: no.spam.here@its.invalid   
      
   On 11/3/2011 4:54 PM, Frank Bergemann wrote:   
   >   
   >   
   > Btw - concerning your comment:   
   > Are class data members like _xPos still allowed? (or is such also   
   > deprecated? not recommended?)   
   > I wonder about it, because naming class data member this way is widely   
   > used.   
   > But then there is just the differences between first uppercase vs.   
   > first lowercase letter (after the single underscore)   
   > for "exhibit undefined behavior"(?!)   
   >   
      
   Initial underscore with lower case is reserved only in global scope   
   (17.4.3.1.2).   
      
   So in class scope, it's fine.   
      
   Initial underscore followed by upper case is always   
   reserved.  Any double underscore is also always reserved.   
      
   So _xPos is OK as a member, but _XPos is not, even as   
   a class member.   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca