Get address of overloaded function

Frank Benoit (keinfarbton) benoit at tionex.removethispart.de
Sat Feb 24 07:04:00 PST 2007


I want to assign a function ptr to a void* variable.

There are no compile error in case the function is a overloaded one. Is
this a bug?

How to select the correct function? I tried a cast, and it seams to work.

void fnc(){}
void fnc(int a ){}

void * ptr = cast(void*)cast( void function( int )) & fnc;



More information about the Digitalmars-d mailing list