Logical const

Walter Bright newshound2 at digitalmars.com
Mon Nov 29 12:58:10 PST 2010


Steven Schveighoffer wrote:
> Having a logical const feature in D would not be a convention, it would 
> be enforced, as much as const is enforced.  I don't understand why 
> issues with C++ const or C++'s mutable feature makes any correlations on 
> how a D logical const system would fare.  C++ const is not D const, not 
> even close.


Because people coming from C++ ask "why not do it like C++'s?"


More information about the Digitalmars-d mailing list