1.0 ?? [templates and currying]

BCS BCS at pathlink.com
Tue Nov 7 09:09:11 PST 2006


While the topic is function, "there arguments and what not" could we get 
a fix to issue #52 (I think that is the number). As it stands, there is 
no way to reference an overloaded function with out already knowing it's 
type.

int foo(char c){return 0;}
void foo(long l){}

auto fn = &foo;
// the foo used changes if the order of the above changes.

this could also cause problems while attempting to call overloaded 
functions the an overloaded function as a parameter

void fuf(int function(char) fn){}
void fuf(void function(long) fn){}

fuf(&foo);	// what is used here




More information about the Digitalmars-d mailing list