Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

C Secure Coding Standard: DCL19-C. Minimize the scope of variables and functions
C++ Secure Coding Standard: DCL07-CPP. Minimize the scope of variables and methods

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6463c96b-0fc8-4b76-94e5-1c2721a8d05a"><ac:plain-text-body><![CDATA[

[[Bloch 2001AA. References#Bloch 01]]

Item 29, Minimize the scope of local variables

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d3a23a67-fa76-4ca9-aa94-052b06bff5b5"><ac:plain-text-body><![CDATA[

[[JLS 2005AA. References#JLS 05]]

[§14.4.2, "Scope of Local Variable Declarations"

http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.4.2]

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

...

DCL61-J. Avoid cyclic dependencies between packages      01. Declarations and Initialization (DCL)      DCL63-J. Do not shadow or obscure identifiers in subscopes