TCPL/A.04.3_Derived_types

返回“TCPL”

A.4.3 Derived types

Beside the basic types, there is a conceptually infinite class of derived types constructed from the fundamental types in the following ways:

arrays of objects of a given type; functions returning objects of a given type; pointers to objects of a given type; structures containing a sequence of objects of various types; unions capable of containing any of one of several objects of various types.

In general these methods of constructing objects can be applied recursively.