Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
define-declared ( word def effect -- )
Factor documentation
>
Factor handbook
>
The language
>
Words
>
Colon definitions
Prev:
define ( word def -- )
Next:
define-inline ( word def effect -- )
Vocabulary
words
Inputs and outputs
word
a
word
def
a
quotation
effect
an
effect
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
swap
set-stack-effect
]
[
drop
define
]
3bi
;