Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

According to the JLS, §15.7, "Evaluation Order" [JLS 2005]:

The Java programming language guarantees that the operands of operators appear to be evaluated in a specific evaluation order, namely, from left to right.

...

CERT C Secure Coding Standard

EXP30-C. Do not depend on order of evaluation between sequence points

CERT C++ Secure Coding Standard

EXP30-CPP. Do not depend on order of evaluation between sequence points

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="22d6879aaa41b97d-aaa7217b-46424a38-ab53aecf-972123f0fe4dede2024441b5"><ac:plain-text-body><![CDATA[

[ISO/IEC TR 24772:2010

http://www.aitcnet.org/isai/]

Side Effects and Order of Evaluation [SAM]

]]></ac:plain-text-body></ac:structured-macro>

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bf5bad548e3fe16f-4ca36a2d-4f6c42f9-83b2aa72-1a8934c8d250710a5f796cde"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§15.7, Evaluation Order

http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.7]

]]></ac:plain-text-body></ac:structured-macro>

 

§15.7.3, Evaluation Respects Parentheses and Precedence

...