www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Get mangled name of field?

reply Alex <AJ gmail.com> writes:
How do I get the mangled name of a field? mangledName!T requires 
passing a type ;/
Apr 02
parent Jacob Carlborg <doob me.com> writes:
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
Apr 02