import std.stdio;

void foo(string) { writeln("foo(string)"); }
void foo(int)    { writeln("foo(int)"); }

void main() {
    auto a = cast(void function(string))&foo;
    auto b = cast(void function(int))&foo;
    a("");
    b(10);
}

有点像函数<...>了.应该是可以实现的.