Constness understanding

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 30 03:08:44 PST 2015


On 30.11.2015 13:27, Kagamin wrote:
> Unfortunately in D constant doesn't mean constant :( it means readonly:
> you can read it, but it can change in other ways. Immutable means
> constant - doesn't change in any way.
Thanks, considering 'const' as 'readonly' explains my case rather well.


More information about the Digitalmars-d-learn mailing list