Scope of enumerators
<p>In the following, I don't know if i'm confusing enums in C# with C++ but 
  I thought you could only access enumerators in enum using <code>Forms::shape</code> which actually gives an error. </p>

<pre><code>int main()
{
    enum Forms {shape, sphere, cylinder, polygon};

    Forms form1 = Forms::shape; // error
    Forms form2 = shape; //  ok
}
</code></pre>

<p>Why is <code>shape</code> allowed to be accessed outside of enum without a scope operator and how can i prevent this behavior?</p>
