assert semantic change proposal

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 7 00:54:49 PDT 2014


Am Wed, 06 Aug 2014 14:57:50 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> On 8/6/2014 10:18 AM, Sean Kelly wrote:
> > So from a functional perspective, assuming this is a multithreaded
> > app, what should the procedure be when an AssertError is thrown in
> > some thread?
> 
> Print message, stop the process and all its threads.
> 
> Rationale: the program is in an unknown, invalid state, which will
> include any thread (or process) that has access to memory shared with
> that failed thread.
> 
> Attempting to continue operating is irresponsible if the program is
> doing or can do anything important.

Again: unittests?


More information about the Digitalmars-d mailing list