delegate type from function signature

Nub Public nubpublic at gmail.com
Sun Jun 26 00:08:26 PDT 2011


Is it possible to get the signature of a function and make a delegate 
type from it?


Something like this:

bool fun(int i) {}

alias (signature of fun) DelegateType;

DelegateType _delegate = delegate(int i) { return i == 0; };


More information about the Digitalmars-d-learn mailing list