title: Do enum values behave like global variables?
body: <p>I have two enums, and if there is one value in one enum with the same name as a value in the other enum:</p>
  
  <pre><code>enum A {joe, bob, doc};
  enum B {sunday, monday, doc};
  </code></pre>
  
  <p>The compiler (Visual Studio's) complains about redefinition of <code>doc</code>, which implies it treats it as a global variable. Is this so? It is not the behavior I would expect, and it forces me to manage names of all enum elements in my project. </p>
  
  <p>Any insights would help. </p>