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

Next:INSTANCE:


Vocabulary
syntax

Syntax
MIXIN: class


Inputs
None

Outputs
None

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