Congratulations to the D Team!
Roman D. Boiko
rb at d-coding.com
Wed Jul 11 11:17:05 PDT 2012
On Wednesday, 11 July 2012 at 18:10:04 UTC, H. S. Teoh wrote:
> On Wed, Jul 11, 2012 at 08:01:44PM +0200, deadalnix wrote:
...
>> Did you saw the proposal of feep/tgehr on #d ?
>>
>> It basically state that you can overload a const method with a
>> non
>> const one if :
>> - You don't mutate any data that belong to the parent.
>> - You are prevented to create any immutable instance of that
>> classe
>> or any subclasse.
>
> +1, very good, I like this idea!
It is a trade-off, but relatively nice one, IMO.
More information about the Digitalmars-d
mailing list