MIXIN:
Factor handbook » The language » Objects » Classes » Mixin classes

Next:INSTANCE:


Vocabulary
syntax

Syntax
MIXIN: class


Inputs and outputs
classa new class word to define


Word description
Defines a mixin class. A mixin is similar to a union class, except it has no members initially, and new members can be added with the INSTANCE: word.

Examples
The sequence and assoc mixin classes.

See also
mixin-class, define-mixin-class, add-mixin-instance, INSTANCE:

Definition