3.3 Structured Types

A structured type is a type that can hold multiple values in one variable. Stuctured types can be nested to unlimited levels.

_________________________________________________________________________________________________________ Structured Types
-- structured type--|----array type ------------------------------------
                |---record type---|
                |---object type---|
                |----class type-----|
                |class reference type|
                -----set type-----|
                     file type
___________________________________________________________________

Unlike Delphi, Free Pascal does not support the keyword Packed for all structured types, as can be seen in the syntax diagram. It will be mentioned when a type supports the packed keyword. In the following, each of the possible structured types is discussed.


   Arrays
   Record types
   Set types
   File types