
4 Nov
2008
4 Nov
'08
10:08 p.m.
Dear Magnus,
In message 59b21cf20811041128uca98211v51ca6b393c3d5d56@mail.gmail.com you wrote:
you might comment that such a #define is dangerous in itself, but why not protet against it? with a number we are sure we don't need parens, but with a macro we'd should rather play safe.
Should we really start protection against such things?
No. We should not start doing this. We should have been doing this from the beginning. Defensive programming is a simple but efficient tool to help producing high quality software.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Q: Why do mountain climbers rope themselves together?
A: To prevent the sensible ones from going home.