[Issue 1931] dmd flow analysis error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 24 07:52:39 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1931
torhu at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |torhu at yahoo.com
------- Comment #6 from torhu at yahoo.com 2008-04-24 09:52 -------
(In reply to comment #5)
Doesn't assert(0) have this effect? You can put it in place of 'missing'
return statements to tell the compiler that you know that control flow will
never reach that location.
http://www.digitalmars.com/d/2.0/expression.html#AssertExpression
http://www.digitalmars.com/d/2.0/statement.html#ReturnStatement
--
More information about the Digitalmars-d-bugs
mailing list