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:45:37 PDT 2014


Is there any way to declare a method as "safe regardless of 
shared/mutability/etc" (or some other way to avoid 
cast(Type)object.property every time I want to check a property 
which won't affect any state)?


More information about the Digitalmars-d-learn mailing list