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.

Reply via email to