Suggestion: object const'ness

Bruno Medeiros brunodomedeirosATgmail at SPAM.com
Sat May 20 02:59:09 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.

Walter mentioned recently in the C++ forum that D would eventually get 
some form of const. However, it surely won't be à la C++.

-- 
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list