enforce()?

Walter Bright newshound1 at digitalmars.com
Thu Jun 17 12:34:40 PDT 2010


Simen kjaeraas wrote:
> That said, a bug in a rarely-used function may indeed be significantly
> less important than getting a server back online. However, I would still
> say an error indicates something is fundamentally wrong.

The contract failing means you do not know what went wrong. That means there's 
no way the program can determine if it is recoverable or not. For all you know, 
malware may have infected your process and continuing to execute may send your 
credit card database to a thief.


More information about the Digitalmars-d mailing list