In C++, the compiler can't use it to provide any real guarantees, because the programmer is free to violate const at any time via mutable or casting away const.

Maybe I'm being stupid, but how is the case any different in D?

Reply via email to