Const Ideas (and reference types)

Denton Cockburn diboss at hotmail.com
Fri Nov 30 13:43:53 PST 2007


On Fri, 30 Nov 2007 15:27:20 -0600, 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
> X const x; // data mutable, ref const


I like this, nice and clear.
++vote.



More information about the Digitalmars-d mailing list