Handbook
Glossary
define-union-class ( class members -- )
Factor handbook
»
The language
»
Objects
»
Classes
»
Union classes
Prev:
UNION:
Next:
class-members ( class -- seq )
Vocabulary
classes
.
union
Inputs
class
a
class
members
a
sequence
of
class
s
Outputs
None
Word description
Defines a union class with specified members. This is the run time equivalent of
UNION:
.
Notes
This word must be called from inside
with-compilation-unit
.
Side effects
Modifies
class
See also
union-class
,
UNION:
Definition
USING:
classes.private
classes.union.private
definitions
kernel
;
IN:
classes.union
:
define-union-class
( class members -- )
[
(define-union-class)
]
[
drop
changed-conditionally
]
[
drop
update-classes
]
2tri
;