$(HTMLTAG3V img, src="images/d4.gif" style="max-width:100%" alt="Contracts make D bug resistant" border="0")
See expression, AssertExpression.
See:
See Struct Invariants and Class Invariants.
template-mixin, Template Mixins, version, Conditional Compilation
Contracts enable specifying conditions that must hold true when the flow of runtime execution reaches the contract. If a contract is not true, then the program is assumed to have entered an undefined state.
Rationale: Building contract support into the language provides: