UNION:
Factor handbook » The language » Objects » Classes » Union classes

Next:define-union-class ( class members -- )


Vocabulary
syntax

Syntax
UNION: class members... ;


Inputs
None

Outputs
None

Word description
Defines a union class. An object is an instance of a union class if it is an instance of one of its members.

See also
union-class, define-union-class

Definition