Even something as simple as this needs logical const<br><br>class MyMathClass<br>{<br> invariant int multiply(int x, int y) /* logically const */<br> {<br> debug logfile.writeLine("multiply.called");
<br> return x * y;<br> }<br><br> debug private Stream logfile;<br>}<br><br>You can't tell me that's not a real world need.<br><br>