string[] enumerations

Nrgyzer nrgyzer at gmail.com
Wed May 11 11:25:47 PDT 2011


== Auszug aus Andrej Mitrovic (andrej.mitrovich at gmail.com)'s Artikel
> 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.


Works great - thanks!


More information about the Digitalmars-d-learn mailing list