Versions Compared

Key

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

Wiki Markup
Immutable objects should be {{const}}\-qualified.  Enforcing object immutability using {{const}}\-qualification helps ensure the correctness and security of applications.  ISO/IEC DTR 24772, for example, recommends labeling parameters as constant to avoid the unintentional modification of function arguments \[[ISO/IEC DTR 24772|AA. C References#ISO/ISO/IEC DTR 24772]\]. [STR05-C. Use pointers to const when referring to string literals] describes a specialized case of this recommendation.

...

Wiki Markup
\[[Dewhurst 02|AA. C References#Dewhurst 02]\] Gotcha #25, "#define Literals"
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.7.3, "Type qualifiers"
\[[Saks 00|AA. C References#Saks 00]\]

...

02. Declarations and Initialization (DCL)      02. Declarations and Initialization (DCL)