I was thinking of adding some global vars to my program when I stoped to think why they are considered harmful.
I read on a google result that they can get mixed up with local variables, but that can be simply fixed with a prepended global_ or something on the lines of that.
I remember reading somewhere about them causing security or memory leaks or something like that.
Is that why? or is there more to it?
I read on a google result that they can get mixed up with local variables, but that can be simply fixed with a prepended global_ or something on the lines of that.
I remember reading somewhere about them causing security or memory leaks or something like that.
Is that why? or is there more to it?
Comment