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