??? 09/25/06 14:05 Modified: 09/25/06 14:38 Read: times |
#125001 - rules imposed on C Responding to: ???'s previous message |
C has no rules about global variables. It has options to declare variables global, local or static.
There are so many 'rules' imposed on C all by individulas operating from the pronciple of "you blabbering idiots have no idea what you are doing, let me protect you from yourselves". C, as designed, gives you the ability to select the most practical approach to whatever the problem is, and using the "most practical approach" should be the only 'rule' applied to any programming, whatever the language. Then, of course, if there are more variants of the "most practical approach" some of the c "rules imposed on C" can make sense. Erik [edit] I need to add that "most practical approach" should NEVER be an excuse for non-maintainable code. The order should be 1) mainatainability 2) efficiency .. .. 47) ease of coding |