"name" of enum members

Jesse Phillips jessekphillips+D at gmail.com
Fri Feb 11 09:49:37 PST 2011


spir Wrote:

> Hello,
> 
> To denote a member 'm' of an enum 'e', one needs to write "e.m". Is there a way 
> to get back this "name"?
> Here are my best trials:

Maybe to!string(Enum.i) should return the enum name with it's field. This makes since because it is trying to return its name, and for named enums, where it comes from is important.


More information about the Digitalmars-d-learn mailing list