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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/31/05 14:18
Read: times


 
#103180 - re Globals
Responding to: ???'s previous message
1) there is nothing wrong with global variables
2) there is nothing wrong with local variables
3) there is a lot wrong with choosing the wrong type.

as Andy mention above it should be a weighted choice.

I have seen many examples where the "globals are evil" approach have led to totally inefficient code that did not even achieve what the "global are evil" proponents state as their reason and if that is not silly, what is.

Erik

List of 12 messages in thread
TopicAuthorDate
Using Multiple C files in SDCC            01/01/70 00:00      
   Not about the compiler            01/01/70 00:00      
   Nothing to do with SDCC            01/01/70 00:00      
   The joy of C            01/01/70 00:00      
      Sloppy terminology            01/01/70 00:00      
         Using Multiple C files in SDCC            01/01/70 00:00      
            Laziness            01/01/70 00:00      
            example            01/01/70 00:00      
   globals are generally bad ...            01/01/70 00:00      
      "Generally" being the important word!            01/01/70 00:00      
         re Globals            01/01/70 00:00      
      static            01/01/70 00:00      

Back to Subject List