The boolean $SCOPEDENUMS directive controls how enumeration type values are inserted in the symbol tables. In its default state (OFF) the enumeration values are inserted directly in the symbol table of the current scope. If the directive is set to ON then the values are inserted inside a scope with the name of the enumeration type.
Practically this means that the following is the default behaviour:
The value one can be referenced directly. The following will give an error:
However, if the SCOPEDENUMS directive is set to ON, then the assignment must be made as follows:
i.e. the value must be prefixed with the type name.