getting Key:Value pairs of an enum at compile time ?

Uplink_Coder someemail at someprovider.some
Thu Jan 23 07:07:17 PST 2014


Hello,

I have an Enum to represent possible Options for a selectList
e.g
enum options {
   blueish="Blue",
   redish ="Red"
}
and I want the List-Entrys to say
"blueish" or "redish".
the value send to the app should be
"Blue" or "Red".
I can use __traits(allMembers,Enum)
for the identifiers, but how do I get the Values ?



More information about the Digitalmars-d-learn mailing list