- Joined
- Aug 21, 2005
- Messages
- 3,699
I assume Griffen meant that dead code should not be allowed. conditional code (if/then/else) should ofcourse still be allowed. Anyway, a) won't solve the problem completely, since you would still be able to return wrong types through something such as "if true then return h else return 0; return 0". Besides, most compilers I've used still allow dead code, they only give warnings but still compile it. In the end, dead code shouldn't cause any trouble at all, it's no typechecking that causes the trouble here.