Get address of overloaded function
Frank Benoit (keinfarbton)
benoit at tionex.removethispart.de
Mon Feb 26 14:59:28 PST 2007
> And now one of the classic proposals, once again. :)
>
> void* ptr = cast(void*) &fnc(int) ;
Is this perhaps a problem with context free syntax?
It is not clear, if this is a "get function pointer address" or a "call
function" operation.
void* ptr = cast(void*) &fnc( Something ) ;
To decide this, the compiler needs to have the arguments completely
resolved. Then he can see if they are types, or not.
More information about the Digitalmars-d
mailing list