On Thursday, 25 December 2014 at 15:59:44 UTC, Danny wrote:
I can only think: And? It's right there... it's a class instance, it has 'this'.

There's no this at compile time though which is why it complains. What you're trying to do is an expression alias which D doesn't support (and sometimes it gives the error message "alias expressions are not allowed", not sure why it didn't here..).

If you made your opDispatch a function it would work though.

Reply via email to