Getting the string representing the enum value ~ Proposal

Sean Kelly sean at f4.ca
Sun Apr 2 22:40:48 PDT 2006


kris wrote:
>
> I'll propose that a new property be added, somewhat like the .mangleof 
> property. Instead, a .nameof property would simply return the lexical 
> token for the named entity. Doesn't matter whether it refers to a 
> struct, class, some attribute thereof, enum types or members, whatever 
> ... the x.nameof should just return a char[] of the respective name.
> 
> Thoughts?

This would be great.


Sean



More information about the Digitalmars-d-learn mailing list