Logical const

Walter Bright newshound2 at digitalmars.com
Mon Nov 29 11:52:54 PST 2010


Steven Schveighoffer wrote:
> But in any case, const (even the non-logical variety) does not guarantee 
> purity.  Only pure functions do that (always return the same value for 
> the same input)

Right, but C++ doesn't have purity either. I was trying to make the point that 
C++ does not have a "logical const" language feature. It's only a convention.


More information about the Digitalmars-d mailing list