| Version 1.9 Build 1556
|
|
Next: Examples - Warnings
Up: Programming Tips
Previous: Type Conversions
Subsections
Character constants should only contain one character because of
differences in portability; a string literal may be used instead.
Avoid hard-coding offsets into structures. The alignment
of structure members is implementation dependent. The pre-defined
"offsetof" macro should be used to determine structure member
offset.
Avoid dependence on initialization order of global static objects.
Avoid dependence on order of operand evaluation.
Avoid Dependence on initialization order in constructors.
Next: Examples - Warnings
Up: Programming Tips
Previous: Type Conversions
  Contents
  Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15