Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
bind ( ns quot -- )
Factor documentation
>
Factor handbook
>
The language
>
Dynamic variables
>
Namespace combinators
Prev:
with-variable ( value key quot -- )
Vocabulary
namespaces
Inputs and outputs
ns
an
assoc
quot
a
quotation
Word description
Calls the quotation in the dynamic scope of
ns
. When variables are looked up by the quotation,
ns
is checked first, and setting variables in the quotation stores them in
ns
.
Definition
USING:
kernel
namespaces.private
;
IN:
namespaces
:
bind
( ns quot -- )
swap
>n
call
ndrop
;
inline