CoreClasses.mesa
Copyright
© 1985 by Xerox Corporation. All rights reserved.
Bertrand Serlet, November 12, 1985 6:01:32 pm PST
DIRECTORY Core;
CoreClasses:
CEDAR
DEFINITIONS =
BEGIN
OPEN Core;
Theory
This interface defines a set of Classes of general interest.
Record
Record describes the structuring mechanism which takes a collection of cell types of various classes and binds them together.
Some invariants must be established by a program which creates this data structure:
1) For each instance the actual field must conform to the public field of the cell type which is pointed to by the instance.
Conform[w1, w2]
{
w1.structure =
NIL
Ò w2.elements =
NIL
w1.elements
`
NIL
Ò
w2.elements
`
NIL
'
w1.elements.size = w2.elements.size
'