assert semantic change proposal

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 6 15:01:47 PDT 2014


On 8/6/2014 12:34 PM, Sean Kelly wrote:
> There is no facility for forcing a clean termination of another
> thread.

Understood - so the only option is to force an unclean termination.

Let me emphasize that when an assert trips, the program has failed. It is in an 
invalid, unknown, indeterminate state from that moment forward.

Use enforce() for errors that are anticipated and cleanly recoverable, not assert().



More information about the Digitalmars-d mailing list