Worry about problems down the road? Ha! I"ll be gone before I have to fix it. My legacy to all the nice 60's, 70's et al programmers that left me to fix all that Y2k crap!
Heh globals are a debugging and matainance nightmare for any decent sized application. Which is one reason never to use them, you never get used to and just do it the right way the first time, making you whole life easier.
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
but i do that all the time... (in java mostly) what's wrong with it? IMO it keeps the code cleaner and you don't have to worry about what variables you've declared outside the loop for a simple index.
Quote:
Originally Posted by Peter M
C++ is about making objects and keeping data encapsuled with the code that handles it.
Doesn't that kind of contradict the previous advice? ^ (I agree on the globals, thats not what i'm talking about)