>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 = "cat"; /* invariant */<br><br>/* now let's modify the string, without using cast */<br>char * p;<br>p += &s[0] - null;<br><br>/* drum roll... */<br><br>*p = 'b';<br>writefln(s); /* writes "bat" on Windows */
<br><br><br><br>Never, ever do this! :-)<br><br>