Identifier hierarchy

Luís Marques luis at
Mon Jun 11 12:38:33 UTC 2018

Just to check. If you have a piece of code like "", 
you can get the full hierarchy, for instance with stringof:

      static assert( == "");

But once you pass to a template, there's no way to 
recover the full path, is there? You only get baz. You can ask 
for the __traits(parent, baz), but you only get the type of bar, 
not the identifier.

Assuming you pass the normally (alias arg) to the 
template (not as a string, for instance), there's no workaround 
for this, is there?

More information about the Digitalmars-d mailing list