Function pointer from mangled name at runtime?

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 1 13:17:54 PDT 2017


On Friday, 1 September 2017 at 19:49:46 UTC, bitwise wrote:
> [...]

oddly, this seems to compile:

extern(C) T foo(T)() {
     return T.init;
}

So I'm thinking now..is this as easy as just figuring out how 
it's mangled and calling dlsym()?



More information about the Digitalmars-d mailing list