assert(0) behavior

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 4 16:56:09 PDT 2015


On Tuesday, 4 August 2015 at 23:33:17 UTC, Walter Bright wrote:
> On 8/4/2015 2:07 PM, Steven Schveighoffer wrote:
>> With druntime it's difficult to actually print the message
>
>     fprintf(stderr, "You left the headlights on.");
>     assert(0);

It seems that on american car, you bip as annoyingly as possible 
instead of announcing what's wrong. Preferably for anything and 
its reverse.



More information about the Digitalmars-d mailing list