opDispatch
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 25 08:07:08 PST 2014
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.
More information about the Digitalmars-d-learn
mailing list