Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAardvajk

Posted 25 December 2012 - 07:01 PM

...and the fact that global variables are a bad thing in C++. In C, I would just...

Don't misunderstand this - global variables are as "bad" in C as they are in C++. It has nothing to do with the language.

"Bad" is obviously the wrong term. There are advantages and disadvantages to using global state and in general the disadvantages tend to outweigh the advantages in non-trivial projects.

#1Aardvajk

Posted 25 December 2012 - 07:01 PM

<blockquote class="ipsBlockquote" data-author="MarkS" data-cid="5014229"><p>...and the fact that global variables are a bad thing in C++. In C, I would just...</p></blockquote><br />Don't misunderstand this - global variables are as "bad" in C as they are in C++. It has nothing to do with the language.<br /><br />"Bad" is obviously the wrong term. There are advantages and disadvantages to using global state and in general the disadvantages tend to outweigh the advantages in non-trivial projects.

PARTNERS