Should unreachable code be considered an error?
Robert Clipsham
robert at octarineparrot.com
Thu Aug 18 05:41:23 PDT 2011
On 18/08/2011 13:38, Bernard Helyer wrote:
> 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.
Definitely a warning, I get a lot of dead code during development -
making it an error would be annoying, I only care about the dead code
when it gets to release/commit time and I'm cleaning the code up.
--
Robert
http://octarineparrot.com/
More information about the Digitalmars-d
mailing list