- 论坛徽章:
- 0
|
原帖由 notbusy 于 2010-1-9 00:32 发表 ![]()
干了些年C以后,开始觉得这样的traps and pitfalls是用来回避的,而不是用来研讨的。
的确。
The moral is that writing code that depends on order of evaluation is a bad programming practice in any language. Naturally, it is necessary to know what things to avoid, but if you don't know how they are done on various machines, you won't be tempted to take advantage of a particular implementation. -- The C Programming Language, 2nd ed, Sec. 2.12, p. 54
http://www.codeguru.cn/CPP/TheCprogrammingLanguage/chapter2.html
, and
... if you don't know how they are done on various machines, that innocence may help to protect you. (1st ed)
[ 本帖最后由 langue 于 2010-1-10 15:16 编辑 ] |
|