const methods()

James Dennett jdennett at acm.org
Tue Jan 23 08:15:14 PST 2007


Kristian Kilpi wrote:
> On Tue, 23 Jan 2007 14:52:30 +0200, Mike <mike at mike.com> wrote:
>> Kristian, the mutable keyword allows you to override the constness. So
>> in my
>> opinion, the way C++ does const objects is perfect. Cant understand
>> why its not in D.
> 
> Wha!? I can't believe I have missed that one! 8|  Hehheh... well, you
> learn every day something new (sometimes pretty essential things it
> seems)... Thanks for pointing this out. :)

Without wishing to pick on Kristian, this is fairly common
of "your language sucks because..." arguments -- those who
know the language better know the argument to be based on
insufficient understanding, but that doesn't stop it being
promulgated enthusiastically.  Right now this probably
happens more to C and C++ than to any other languages
(which isn't to say that those languages don't have
plenty of legitimate warts), but if/when D has more success
the D community will likely be on the receiving end of this.

Learning from how this has hurt other languages could
enable the D community to manage the propaganda war more
effectively.

-- James



More information about the Digitalmars-d mailing list