Example: ---- void doStuff() { writeln("Hello, world."); }
void runDelegate(void delegate() myDelegate) { myDelegate(); }
auto delegateToPass = toDelegate(&doStuff); runDelegate(delegateToPass); // Calls doStuff, prints "Hello, world." ----
BUGS:
- Ignores C-style / D-style variadic arguments.