[Issue 1931] dmd flow analysis error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 24 23:14:54 PDT 2008


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


davidl at 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |major




------- Comment #7 from davidl at 126.com  2008-04-25 01:14 -------
Since we have assert(0); then we should deprecate the current compiler
behavior.

Every such piece code *should be* written as following:
bool setsomething()
{
    if (k==4)
        return false;
    assert(0);        // developer should never ignore this line!!
}


-- 



More information about the Digitalmars-d-bugs mailing list