4.29. 4.29 Records

Another major composite data structure is the Pascal record or C/C++ structure.[83] The Pascal terminology is probably better, because it tends to avoid confusion with the more general term data structure. Because HLA uses the term "record" we'll adopt that term here.

[83] It also goes by some other names in other languages, but most people recognize at least one of these names.

Whereas an array is homogeneous, whose elements are all the same, the elements in a record can have different types. Arrays let you select a particular element via an integer index. With records, you must select an element (known as a field) by name.

The whole purpose of a record is to let you encapsulate different, but logically related, data into a single ...

Get Art of Assembly Language, 1st Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.