why can't I call const methods on shared objects?

Vlad Levenfeld via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 9 14:37:35 PDT 2014


Error: non-shared const method is not callable using a shared 
mutable object

Why not? If the method is const, it can't modify the object 
anyway.


More information about the Digitalmars-d-learn mailing list