Is there a way to make a class variable visible but constant to outsiders, but changeable (mutable) to the class itself?
dan via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 21 12:17:00 PDT 2016
Thanks Vit, Meta, and Yuxuan for your speedy help!
So 3 pieces to put together, function, const, and @property (and
i guess final for protection against subclasses).
More information about the Digitalmars-d-learn
mailing list