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

Declaring an Icon record type

Tech Computer Center logo

To create your own record type in Icon, you must first define the names of the fields that go into the record.

Here is an example of a record type declaration:

    record complex ( r, i )
This defines a new record type named ``complex'' which is a container for two fields named ``r'' and ``i''. You might use this to represent complex numbers, where ``r'' is the real part and ``i'' is the imaginary part.
Next: Creating an Icon record object
See also: Creating your own record types in Icon
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 1996/01/06 21:12:57 UT
URL: http://www.nmt.edu/tcc/help/lang/icon/recdeclare.html