How to obtain a list of all the elements of an enum?
dnspies
dspies at ualberta.ca
Sat Apr 5 19:18:56 PDT 2014
If I have an enum:
enum x {A : 1, B : 2, C : 100};
How can I get a list of all of its elements?
x.get_list() (returns [A, B, C])
More information about the Digitalmars-d-learn
mailing list