C++-style mutable members

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 17 12:47:35 PST 2017


On Tuesday, 17 January 2017 at 20:21:34 UTC, Nordlöw wrote:
> Is there a way to mimic C++-style `mutable` members in D?
sure: don't use `const`. otherwise — no, there is simply no way 
to «mimic» 'em due to completely different meaning of `const` in 
D and C++.


More information about the Digitalmars-d-learn mailing list