useo:

> ... something like:
> 
> void bindEvent(T)(if (is(T == delegate) || is(T == function)))()...

void foo(T)(T x) if (is(T == delegate) || is(T == function)) { ... }

Bye,
bearophile

Reply via email to