Do static variables in class consume memory of instances?
Mark Lagodych
lgd.mrk at gmail.com
Thu Jul 22 15:50:59 UTC 2021
[D documentation](https://dlang.org/spec/attribute.html#static)
says:
> Static data has one instance per thread, not one per object.
Do static variables consume *any* memory in instances, perhaps
just for pointers to the variables? Or does compiler
automatically convert `someObject.someStaticMember` to
`SomeClass.someStaticMember`?
More information about the Digitalmars-d-learn
mailing list