Compile-time AAs

bearophile bearophileHUGS at lycos.com
Tue Sep 15 06:30:20 PDT 2009


Ellery Newcomer:
> Giving enums a tupleof property would make more sense, I think. I've
> always wondered why they don't have it.

While we wait some years for a saner solution, you may use this bad looking hack (D2):
http://www.digitalmars.com/d/2.0/phobos/std_typecons.html#defineEnum

Bye,
bearophile



More information about the Digitalmars-d mailing list