Quote:
Originally Posted by xVIP3Rx
You say that we should use static globally because its created once until the server is closed ? But Isn't that the same as "New" ?
|
For global variables, yes.
Quote:
Originally Posted by xVIP3Rx
Also as I knew from the wiki Ithat I can use it locally if I don't want it to forget it's value, like declaring a global variable locally..
And globally just If I will only use it in the file I declared it in.. Is there any other reason/something I should use it for ?
|
Not really, but that should be enough. Hiding implementation details and data from the end user is good programming practice. Look up encapsulation.