Const Ideas (and reference types)
Christopher Wright
dhasenan at gmail.com
Mon Dec 3 05:10:21 PST 2007
Walter Bright wrote:
> Craig Black wrote:
>> Here's another idea. If we reverse the meaning of const(X) then we
>> could do this:
>>
>> const X x; // all const
>> const(X) x; // data const, ref mutable
>
> This is what we have now.
>
>> X const x; // data mutable, ref const
>
> This breaks transitivity of const.
That's our goal. Other languages have the final keyword for this; we
don't want to feel left out.
More information about the Digitalmars-d
mailing list