[Issue 2618] Assert errors should be unrecoverable.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 26 05:46:23 PST 2009


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





------- Comment #2 from dsimcha at yahoo.com  2009-01-26 07:46 -------
Well, IMHO, asserts are supposed to be for pre- and postconditions and internal
consistency checks and are essentially tests in themselves.  Unittesting the
asserts, then, is just plain overkill.  If it's the kind of thing were it's
more than just a sanity check, then you probably should be using "real"
exceptions anyhow.  Honestly, I've heard of people testing for "regular"
exceptions being thrown when they should be, but never asserts.


-- 



More information about the Digitalmars-d-bugs mailing list