Identifier hierarchy

Mike Franklin slavo5150 at yahoo.com
Mon Jun 11 12:59:01 UTC 2018


On Monday, 11 June 2018 at 12:38:33 UTC, Luís Marques wrote:
> Just to check. If you have a piece of code like "foo.bar.baz", 
> you can get the full hierarchy, for instance with stringof:
>
>
>      static assert(foo.bar.baz.stringof == "foo.bar.bar");
>

Are you looking for this: 
https://dlang.org/phobos/std_traits.html#fullyQualifiedName ?

Mike



More information about the Digitalmars-d mailing list