Passing around a list of differently typed functions
Evan Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 22 18:16:47 PDT 2014
As the subject says, I would like to pass around an array of
functions. The trick is, that the functions have different type
signatures. Is there a way to put the two functions
int foo(int a, int b);
bool bar(bool a, bool b);
into one array, that I can pass around and cast as necessary?
Thanks, Evan
More information about the Digitalmars-d-learn
mailing list