Get name of enum val at compile-time?
Timon Gehr
timon.gehr at gmx.ch
Sun Jan 15 12:55:27 PST 2012
On 01/15/2012 09:34 PM, Nick Sabalausky wrote:
> import std.conv;
> enum Foo { hello }
> enum x = to!string();
>
enum x = to!string(Foo.hello);
More information about the Digitalmars-d-learn
mailing list