Not even I'm stupid enough to think you can counter the global variables that other peoples put in thier code. And you know I'm one for blanket statements that need clarifying later.
Awe, come on. It's stupidity that makes flames last so long ;-).
Instead of having a global, you declare the variable locally (or as a memeber) at the highest place it's needed. The ultimate highest place you could need something is main.
Ah, ok. Yeah, maybe we just create a global class (CGlobal) that then holds everything that should be global, thus we only have one global.
> We'll not mention how bad Hungarian notation is. ;-)
And not to mention how useful it is too!
I never found it so. It's more of a hindrance and a lot of extra work in a code base that is constantly changing.
You know what they say, design twice - code once. :-)
_______________________________________________ msvc mailing list msvc@beginthread.com See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.