Print out the name of a type

Dicebot public at dicebot.lv
Thu Jul 4 07:53:41 PDT 2013


On Thursday, 4 July 2013 at 14:46:36 UTC, Joseph Rushton Wakeling 
wrote:
> ...

Each has own disadvantages, chose one ;)

T.stringof // simple & reliable, won't work for function aliases
__traits(identifier, T) // only symbols
std.traits.fullyQualifiedName!T // issues with templated types, 
includes module/package into name


More information about the Digitalmars-d-learn mailing list