Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

Creating your own record types in Icon

Tech Computer Center logo

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: Passing data structures to Icon procedures
See also: Using data structures in Icon
Previous: Using the table type in Icon
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 1996/01/06 21:12:57 UT
QR two-dimensional bar code