Get which derived class an object is if it's stored in an array of its base class
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 15 07:46:17 PDT 2017
On Saturday, 15 July 2017 at 14:36:40 UTC, Morimur55 wrote:
> ...let me try that again without accidentally sending it before
> I'd finished...
tab on the web interface is so useful... but so annoying
sometimes too.
> ...and I think my problem is actually that redeclared static
> variables update on the base class if called from a base class
> function?
Yeah, member variables are always directly attached to the class
they are on, no virtualness there.
Why are you redeclaring it? A virtual property getter/setter pair
might be what you need.
More information about the Digitalmars-d-learn
mailing list