Const is not always enforced by the compiler. In some cases it is not so much a compile time rule as a programmer promise that they are not going to write code that violates it. When the compiler can detect violations it will report them, but there are things it can not detect.
Jay