Const question

Graham St Jack Graham.StJack at internode.on.net
Mon Mar 31 15:24:24 PDT 2008


On Thu, 27 Mar 2008 23:05:03 -0700, Walter Bright wrote:

> Graham St Jack wrote:
>> While I have your attention, what is the plan for expressing that an
>> object is const or immutable and to have a mutable reference to it?
>> Arrays are fine (like "string"), but what is the deal for classes?
> 
> There is no plan to have a mutable reference to const class contents. It
> just doesn't work in the type system.

Ok, I can live with that. Thanks for the clarification.



More information about the Digitalmars-d mailing list