Is there a way to make a class variable visible but constant to outsiders, but changeable (mutable) to the class itself?
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 21 20:11:55 PDT 2016
On Sunday, 22 May 2016 at 03:06:44 UTC, Mike Parker wrote:
> As for 'const' and '@property', neither is strictly a
> requirement to implement this idiom. Adding const means that
Oh, and the same holds true for final, of course. It's probably
what you want most of the time, but it isn't strictly necessary
for the idiom.
More information about the Digitalmars-d-learn
mailing list