Weird behavior of "this" in a subclass, I think?

2015-07-15 Thread seashell86 via Digitalmars-d-learn
So I've been mostly just toying around with D as it seems like it will end up being a strong language for game development both now and even moreso in the future. That being said, I'm perplexed by using this code and not receiving the result I would imagine. Here is the source code of a basic

Re: Weird behavior of "this" in a subclass, I think?

2015-07-15 Thread seashell86 via Digitalmars-d-learn
On Thursday, 16 July 2015 at 00:39:29 UTC, H. S. Teoh wrote: On Thu, Jul 16, 2015 at 12:18:30AM +, seashell86 via Digitalmars-d-learn wrote: [...] The reason is that class variables cannot be overridden, only class methods can. If you want to simulate overriding of class variables, you