[Issue 8765] assert should print the source code for the condition when no message argument present

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 21 14:04:37 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8765


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #3 from bearophile_hugs at eml.cc 2012-10-21 14:04:36 PDT ---
(In reply to comment #2)

> Actually wait a minute, it already does this in 2.060. Is there some other
> example where this doesn't work?

If I compile and run this program (Windows):


void main() {
    assert(5 == 4);
}


It gives me:

core.exception.AssertError at test(2): Assertion failure

Followed by a stack trace.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list