4 ms·
"Firstly, it is not an obvious way to declare an enum if you are at all familiar with their use in other languages." It's the same way C does it, other than sa
by al2o3cr 5y ago
"Firstly, it is not an obvious way to declare an enum if you are at all familiar with their use in other languages."
It's the same way C does it, other than saying "const" instead of "enum". Explicitly casting int -> enum is "recommended" but not required or enforced.