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--|
                   ---intesrfetacetyptyepe----|
                   -----  le 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.


  3.3.1 Arrays
    Static arrays
    Dynamic arrays
  3.3.2 Record types
  3.3.3 Set types
  3.3.4 File types