Fully qualified name of an identifier as a compile-time string

Adam Cigánek adam.ciganek at gmail.com
Thu Oct 28 15:24:45 PDT 2010


> You could try 'identifier.stringof'. But I don't know if that'll give you
> what you want, and .stringof does have a history of being buggy,
> poorly-defined, and frequently changing.

Thanks, but stringof gives unqualified name as well. Are foo.stringof
and __traits(identifier, foo) the same thing?


More information about the Digitalmars-d-learn mailing list