Min, max of enum

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 25 22:13:10 PST 2017


On Thursday, 26 January 2017 at 05:58:26 UTC, Profile Anaysis 
wrote:
> Since we do not have attributes for enums, I use _ in front of 
> the names for meta values.
>
> [...]

This can be done with Ctfe mixins and __traits,

look at __traits(allMembers)


More information about the Digitalmars-d-learn mailing list