define-tuple-class ( class superclass slots -- )
Factor handbook > The language > Objects > Tuples > Tuple introspection

Prev:tuple= ( tuple1 tuple2 -- ? )


Vocabulary
classes.tuple

Inputs and outputs
classa word
superclassa class
slotsa sequence of strings


Word description
Defines a tuple class inheriting from superclass with slots named by slots. This is the run time equivalent of TUPLE:.

Notes
This word must be called from inside with-compilation-unit.

Side effects
Modifies class

See also
tuple-class, TUPLE:

Definition