ROLE-TUPLE:
Roles

Prev:ROLE:
Next:role


Vocabulary
roles

Syntax
ROLE-TUPLE: name slots ; ROLE-TUPLE: name < estate slots ; ROLE-TUPLE: name <{ estates... } slots... ;


Word description
Defines a new tuple class.

The list of inherited estates is optional; a single tuple superclass and/or a set of roles can be specified. If no superclass is provided, it defaults to tuple.

Slot specifiers take one of the following three forms:
name - a slot which can hold any object, with no attributes
{ name attributes... } - a slot which can hold any object, with optional attributes
{ name class attributes... } - a slot specialized to a specific class, with optional attributes

Slot attributes are lists of slot attribute specifiers followed by values; a slot attribute specifier is one of initial: or read-only. See Tuple slot declarations for details.

See also
ROLE:

Definition