Getting the const-correctness of Object sorted once and for all

Timon Gehr timon.gehr at
Mon May 14 09:53:23 PDT 2012

On 05/14/2012 06:10 AM, Chris Cain wrote:
> On Monday, 14 May 2012 at 02:57:57 UTC, Mehrdad wrote:
>> The problem is that it's unavoidable.
>> i.e. you can't say "don't mark it as const if it isn't const",
>> because, practically speaking, it's being forced onto the programmers
>> by the language.
> You're really against const in this language, huh?

I guess this is not the most important point.
He has been trying to use const like in OO-ish C++.
This just does not work, because D const is detrimental to OO
principles when used that way.
The proposal is about _enforcing_ C++-like usage of const.

More information about the Digitalmars-d mailing list