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
Jacob Carlborg via Digitalmars-d-learn Tue, 30 Sep 2014 13:51:01 -0700
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