Basile B. <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #9 from Basile B. <> ---
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:


Reply via email to