On Sunday, 6 April 2014 at 17:52:19 UTC, Walter Bright wrote:
On 4/6/2014 3:31 AM, Leandro Lucarella wrote:
What I mean is the current semantics of enum are as they are
historical reasons, not because they make (more) sense (than
possibilities). You showed a lot of examples that makes sense
because you are used to the current semantics, not because
they are the
only option or the option that makes the most sense.
I use enums a lot in D. I find they work very satisfactorily.
The way they work was deliberately designed, not a historical
The fact that you are unaware of how it's properly done (hint:
Pascal got right with 'set of enum' being distinct from 'enum')
makes it a historical accident.