[Issue 12342] Deprecate not reachable code?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 11 06:13:07 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12342
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from bearophile_hugs at eml.cc 2014-03-11 06:12:57 PDT ---
(In reply to comment #3)
> Personally I find it extremely annoying when I get "unreachable" errors for
> assert(0);. Sometimes I want to add it just to figure out whether execution has
> reached some part of my code, e.g.:
I think you are using assert(0) for the wrong purposes, assert(0) is a code
flow tool, like break and continue, e and it's used to tell the compiler a
certain code branch can't be reached. Perhaps you have to throw a Error
instead.
Given the lack of love you show for this idea, I close down this ER as Invalid.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list