February 06, 2013
On 2/6/13, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> and then tries to

*and then try to (5:38 AM over here)
February 06, 2013
On 2/6/13, Andrej Mitrovic <andrej.mitrovich@gmail.com> 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);