Sad to know that after all that time compilers still can't get even the core semantics right.
There also are a few modules out there that implement design-by-contract's pre-/post-conditions for class instances, for example http://code.activestate.com/recipes/436834/
Sad to know that after all that time compilers still can't get even the core semantics right.