Suggestion: object const'ness

ChristopheBourez ChristopheBourez_member at pathlink.com
Fri May 19 06:53:13 PDT 2006


It should be interesting to have a const'ness ala C++, I mean, the ability to
declare methods that do not modify the state of objects.

class X 
{ 
public:
void ModifyState?();
void DontModifyState?() const;
};

Any comments?

Christophe





More information about the Digitalmars-d mailing list