assert(0) behavior

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 4 13:27:02 PDT 2015


On 8/4/2015 4:58 AM, Steven Schveighoffer wrote:
> The only answer I can think of is to write a message to stderr, and then
> assert(0) as meta suggested.

Print an error message and exit via abort() or whatever. No need to generate a 
halt - the program hasn't entered an unknown state.



More information about the Digitalmars-d mailing list