Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Examples - Warnings Up: Programming Tips Previous: Type Conversions

Subsections


Portability

Data Representation/Byte Ordering

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. [*]

Execution Order

Avoid dependence on initialization order of global static objects.

Avoid dependence on order of operand evaluation.

Avoid Dependence on initialization order in constructors. [*]


next up previous contents index
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