5.1.2 Structure Type Declaration


Structures can be declared in a Class or on a Type declaration within a Class. Generic parameters for a structure can only be declared on a Class declaration; not by using a Type declaration.


An inherited Class needs to declare another structure. Its fields will be included in the structure and its procedures are inheited as well. Parameters to inherited procedures can take take values with either the inherited structure type or the combined structure type.

The alignment clause specifies how the structure is aligned in memory. A Cell alignment will start the structure on an 8 byte memory address. If no alignment is designated the alignment is determined using the widest field in th structure. If the designated alignement is smaller than the widest field then some fields may be unaligned. Usually an unaligned structure will be designated as a byte.

Enumerated Type Declaration

Record Type