Handbook
Glossary
define-declared ( word def effect -- )
Factor handbook
»
The language
»
Words
»
Colon definitions
Prev:
define ( word def -- )
Next:
define-inline ( word def effect -- )
Vocabulary
words
Inputs
word
a
word
def
a
quotation
effect
an
effect
Outputs
None
Word description
Defines a word and declares its stack effect.
Notes
This word must be called from inside
with-compilation-unit
.
Side effects
Modifies
word
Definition
USING:
kernel
;
IN:
words
:
define-declared
( word def effect -- )
[
nip
set-stack-effect
]
[
drop
define
]
3bi
;