fullyQualifiedName

* Get the fully qualified name of a type or a symbol. Can act as an intelligent type/symbol to string converter.

template fullyQualifiedName (
T...
) if (
T.length == 1
) {
enum fullyQualifiedName;
enum fullyQualifiedName;
}

Examples

module myModule;
struct MyStruct {}
static assert(fullyQualifiedName!(const MyStruct[]) == "const(myModule.MyStruct[])");
static assert(fullyQualifiedName!fullyQualifiedName == "std.traits.fullyQualifiedName");

Meta

Suggestion Box / Bug Report