Const Ideas (and reference types)

Walter Bright newshound1 at digitalmars.com
Sun Dec 2 23:39:31 PST 2007


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.



More information about the Digitalmars-d mailing list