Get mangled name of field?

Jacob Carlborg doob at me.com
Tue Apr 2 18:45:09 UTC 2019


On 2019-04-02 15:11, Alex wrote:
> How do I get the mangled name of a field? mangledName!T requires passing 
> a type ;/

struct Foo
{
     int a;
}

void main()
{
     writeln(Foo.a.mangleof);
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list