Should unreachable code be considered an error?

Bernard Helyer b.helyer at gmail.com
Thu Aug 18 05:30:23 PDT 2011


Faramir on the Ars forums makes an excellent point:

"With the c preprocessor, both theoretically and as it is used in 
practice, you can easily get dead code in certain compile paths that is 
live in others."

I think template mixins can achieve the same sort of shenanigans. I think 
warning it is.


More information about the Digitalmars-d mailing list