On 2014-09-30 22:19, anonymous wrote:

import std.typetuple: staticMap;
enum stringOf(alias thing) = thing.stringof;

It's better to use __traits(identifier) instead of .stringof.

--
/Jacob Carlborg

Reply via email to