help: don't make word help create global boxes.
parent
fa0a0939f9
commit
7a615ae33b
|
@ -69,7 +69,7 @@ M: word article-title
|
|||
[ \ $vocabulary swap 2array , ]
|
||||
[ word-help % ]
|
||||
[ \ $related swap 2array , ]
|
||||
[ get-global [ \ $value swap 2array , ] when* ]
|
||||
[ dup is-global [ get-global \ $value swap 2array , ] [ drop ] if ]
|
||||
[ \ $definition swap 2array , ]
|
||||
} cleave
|
||||
] { } make ;
|
||||
|
|
|
@ -47,6 +47,7 @@ PRIVATE>
|
|||
: set ( value variable -- ) namespace set-at ;
|
||||
: on ( variable -- ) t swap set ; inline
|
||||
: off ( variable -- ) f swap set ; inline
|
||||
: is-global ( variable -- ? ) global boxes>> key? ; inline
|
||||
: get-global ( variable -- value ) global at ; inline
|
||||
: set-global ( value variable -- ) global set-at ; inline
|
||||
: change ( variable quot -- ) [ [ get ] keep ] dip dip set ; inline
|
||||
|
|
Loading…
Reference in New Issue