string[] enumerations

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue May 10 14:05:38 PDT 2011


I've ran into the same problem.

There's a way to partially simulate an enum with a struct and some
typedef magic: http://codepad.org/RNYyyFqc

So it kind of acts like an enum. But it's just a workaround, there
might be performance issues + switches don't work for structs. It was
just an experiment though.


More information about the Digitalmars-d-learn mailing list