Suggestion: object const'ness
Lars Ivar Igesund
larsivar at igesund.net
Fri May 19 08:54:15 PDT 2006
Hasan Aljudy wrote:
> 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.
Hmm, no, the summary is that it will probably happen when Walter finds a
solution he is satisfied with. There was some talk on one solution just a
few days ago that he found he very interesting, at least for debug builds.
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi
More information about the Digitalmars-d
mailing list