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

Prev:tuple= ( tuple1 tuple2 -- ? )


Vocabulary
classes.tuple

Inputs
classa word
superclassa class
slotsa sequence of strings


Outputs
None

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