??? 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 |
Topic | Author | Date |
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 |