Get method address from alias?

Tofu Ninja via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 10 23:19:37 PDT 2017


I only have an alias to the method without a this pointer, is 
there any way to get the address?

Something like

struct T{
   void foo(){}
}

alias A = Alias!(__traits(getMemeber, T, "foo"));
void* A_addres = ? // Somehow get the address from A




More information about the Digitalmars-d-learn mailing list