Handbook
Glossary
INSTANCE:
Factor handbook
»
The language
»
Objects
»
Classes
»
Mixin classes
Prev:
MIXIN:
Next:
define-mixin-class ( class -- )
Vocabulary
syntax
Syntax
INSTANCE: instance mixin
Inputs
None
Outputs
None
Word description
Makes
instance
an instance of
mixin
.
See also
mixin-class
,
define-mixin-class
,
add-mixin-instance
,
MIXIN:
Definition
USING:
classes.mixin
compiler.units
kernel
parser
;
IN:
syntax
SYNTAX:
INSTANCE:
location
[
scan-word
scan-word
2dup
add-mixin-instance
<mixin-instance>
]
dip
remember-definition
;