Structs are static collections of multiple values that belong to a single aspect and could be considered as a single, complex value.
Structs begin with an uppercase letter and are put in initial caps. Avoid abbreviations.
If the actual name for the struct does not sound correct, do not add
Properties or the suffixes suggested for enums. These two words refer to different concepts within the OpenOffice.org API. Instead, use words like
Use structs as data containers. Data other than interfaces are always copied by value. This is an efficiency gain, especially in distributed systems.
Structs with just a single member are wrong by definition.
|Content on this page is licensed under the Public Documentation License (PDL).|