...
This rule appears in the Java Secure Coding Standard as EXP09-J. Do not depend on operator precedence while using expressions containing side-effectsallow an expression to write more than once to the same variable.
Bibliography
Wiki Markup |
---|
\[[ISO/IEC 14882-2003|AA. Bibliography#ISO/IEC 14882-2003]\] Sections 1.9 Program execution, 5 Expressions, 12.6.2 Initializing bases and members. \[[ISO/IEC 14882-2003|AA. Bibliography#ISO/IEC 14882-2003]\] Sections 1.9 Program execution, 5 Expressions, 12.6.2 Initializing bases and members. \[[Summit 05|AA. Bibliography#Summit 05]\] Questions 3.1, 3.2, 3.3, 3.3b, 3.7, 3.8, 3.9, 3.10a, 3.10b, 3.11. \[[Lockheed Martin 05|AA. Bibliography#Lockheed Martin 05]\] AV Rule 204.1 The value of an expression shall be the same under any order of evaluation that the standard permits. \[[Saks 07|AA. Bibliography#Saks 07]\] |
...