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


Declaring an Icon record type

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: Using the Icon language
Previous: Creating your own record types in Icon

John W. Shipman, john@nmt.edu