Structured Data Types
Jill A. Hewitt, Raymond J. Frank · 1989
The built-in data types discussed so far are scalar types — this means that each instance of the type has a single value at any one time. A structured data type is one in which a collection of values is referred to by a single name. Individual elements within the collection are accessed via a selection mechanism. Modula-2 provides four structured data types: arrays, records, sets and files. The first three, which refer to internal data structures, are discussed in this chapter. Files and file handling are discussed in the following chapter.