On 9/14/12, timotheecour <[email protected]> wrote:
> Also I can't pass &a.fun2 as fun2 is not static.

Why not pass it as a runtime argument?

void run(Fun, T...)(Fun fun, T args)
{
    writeln(typeid(ParameterTypeTuple!(fun)));
    fun(args);
}

void test()
{
    auto a = new A;
    run(&a.fun, 10);
}

Reply via email to