Program logic bugs vs input/environmental errors

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 29 02:01:29 PDT 2014


On Mon, 29 Sep 2014 10:18:27 +0200
Johannes Pfau via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> I wonder if these 'use asserts for stack traces' and 'an assert is
> always supposed to pass, so it's valid to assume the condition holds
> (in release)' notions can go together. I guess it might at least lead
> to programs that are unusable when compiled with -release.
compiler never optimizes away `assert(0)`, AFAIR. `assert(0)` is a
special thing, it means `abort()`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140929/108a2330/attachment.sig>


More information about the Digitalmars-d mailing list