Improving std.typecons.defineEnum

Tomek Sowiński just at ask.me
Wed Oct 6 13:18:24 PDT 2010


Tomek Sowiński napisał:

> enum Eh { Ah, Oh, Uh }	// plain vanilla enum
> mixin EnumUtils!Eh;  // that's all you need, magic happens here

Actually, you don't even need the mixin, just 2 functions...

-- 
Tomek


More information about the Digitalmars-d mailing list