https://issues.dlang.org/show_bug.cgi?id=7804
Basile B. <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #9 from Basile B. <[email protected]> --- I've managed to get it working for types. It has to because the grammar has to changed so that __trait(getMember,...) becomes a BasicType. To be clear my hacked DMD for struct Foo{struct A{}} alias FooA = __traits(getMember, Foo, "A"); pragma(msg, FooA.stringof); says: "A". Or even struct Foo{alias MyInt = int;} alias FooInt = __traits(getMember, Foo, "MyInt"); static immutable FooInt fi = 42; pragma(msg, fi); says "42" Next step is for variables and other symbols. WIP here: https://github.com/BBasile/dmd/pull/1/files --
