spir:

> To denote a member 'm' of an enum 'e', one needs to write "e.m". Is there a 
> way 
> to get back this "name"?

Is this good enough?

import std.stdio, std.conv;
enum TC { A, B, C }
void main() {
    writeln(typeof(TC.A).stringof, ".", to!string(TC.A));
}


> A bit strange that '%s' does not produce the same string as to!string...

I agree, I have a bug report on this.

Bye,
bearophile

Reply via email to