Suggestion: object const'ness

Hasan Aljudy hasan.aljudy at gmail.com
Fri May 19 08:51:53 PDT 2006


ChristopheBourez wrote:
> 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
> 
> 

I think this has been discussed to death. (the const thing in general)
Summary: probably not gonna happen.



More information about the Digitalmars-d mailing list