Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/30/11 17:02
Read: times


 
#183954 - Namespace
Responding to: ???'s previous message
Well, a class is a namespace. So I feel it is quite natural to be able to have variables hidden within the namespace, but accessible by all objects of the class.

Why should static variables be limited to just file-local global variables, and function-local global variables? Class-local global variables is a very natural generalisation.

List of 15 messages in thread
TopicAuthorDate
static variables in C++            01/01/70 00:00      
   words of one syllable or less?            01/01/70 00:00      
      not really            01/01/70 00:00      
         Semaphore            01/01/70 00:00      
   Static class member varibles?            01/01/70 00:00      
      depends on active scope            01/01/70 00:00      
      You see            01/01/70 00:00      
         Namespace            01/01/70 00:00      
         Disagree about classes            01/01/70 00:00      
            Yeah i suppose            01/01/70 00:00      
   Static variable?            01/01/70 00:00      
      oxymoron            01/01/70 00:00      
         Not to mention            01/01/70 00:00      
            Or even            01/01/70 00:00      
         oxymoron            01/01/70 00:00      

Back to Subject List