On 2/6/13, Andrej Mitrovic <[email protected]> wrote: > void callFunc(alias func, Args...)(Args args) > ... > foreach (Base; ClassTree!(C, D))
Also this was hardcoded for these two leaf classes but it wouldn't be too hard to provide a generic template with which you could do: alias AutoDispatch!(C, D) Dispatch; alias Dispatch!func myFunc; A a = new C; myFunc(a);
