News flash: I'm going to Australia in February, so this Web site may be switched off at any time.


Creating your own record types in Icon

In the Icon language, a record is a container for a set of named fields. For example, a record describing a college course might have fields for the department name, course number, title, and description.

Records in Icon are similar to features available in other programming languages, such as the ``struct'' declaration in C, or the ``record'' declaration in Pascal.

As with Icon's lists, a field in a record can contain anything. You can store integers, reals, lists, tables, even other records in the fields of a record.


Next: Declaring an Icon record type
See also: Using the Icon programming language
Previous: Testing an Icon table for the presence of a key

John W. Shipman, john@nmt.edu