Const Ideas

Craig Black cblack at ara.com
Fri Nov 30 11:14:40 PST 2007


"Robert Fraser" <fraserofthenight at gmail.com> wrote in message 
news:fipn3b$j8n$2 at digitalmars.com...
> Craig Black wrote:
>> const(ref) const X x;  // Everything is const, nothing is mutable
>
> One too many consts. I will not stand for any solution taht has "const" 
> more than once in the declaration.

Right.  I wasn't thinking straight when I proposed this as Janice pointed 
out.
Simply

const X x;

will do the trick. 





More information about the Digitalmars-d mailing list