[Issue 12342] Deprecate not reachable code?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 11 06:57:36 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12342



--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-11 06:57:07 PDT ---
(In reply to comment #4)
> 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.

It's just a temporary use to find problems. Anywho the real problem is the
complete lack of stacktraces when a null function pointer is called. I'm not
sure whether this is filed.

-- 
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