function pointer as the enum base type

mumba qniol at o2.pl
Sun Oct 5 16:42:28 PDT 2008


Denis Koroskin Wrote:

> Looks like it can't sort the enum values at compile time. That's because  
> &foo and &bar are not known until codegen phase.

That's another thing I'm meditating on. Why do we need any kind of ordering in enum types? Isn't it supposed to be the SET of possible values? Set containing not necessarily orderable elements?


More information about the Digitalmars-d-learn mailing list