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.
John Shipman, email@example.com
Last updated: 1996/01/06 21:12:57 UT