>From the sneaky tricks department...<br><br>You know, is it actually possible to circumvent const/invariant correctness *without using a cast at all*. Of course, as with cirucumvention by any other means, this will lead to undefined behaviour, but, just for a laugh...
<br><br><br>string s = &quot;cat&quot;; /* invariant */<br><br>/* now let&#39;s modify the string, without using cast */<br>char * p;<br>p += &amp;s[0] - null;<br><br>/* drum roll... */<br><br>*p = &#39;b&#39;;<br>writefln(s); /* writes &quot;bat&quot; on Windows */
<br><br><br><br>Never, ever do this! :-)<br><br>