words: remove word-props? used only in one place.
parent
056d8acad4
commit
d0a8377827
|
@ -23,8 +23,7 @@ PRIVATE>
|
|||
|
||||
M: word execute (execute) ;
|
||||
|
||||
M: word <=>
|
||||
[ [ name>> ] [ vocabulary>> ] bi 2array ] compare ;
|
||||
M: word <=> [ [ name>> ] [ vocabulary>> ] bi 2array ] compare ;
|
||||
|
||||
M: word definer drop \ : \ ; ;
|
||||
|
||||
|
@ -129,15 +128,12 @@ M: word parent-word drop f ;
|
|||
: word-prop? ( obj string -- ? )
|
||||
over word? [ word-prop ] [ 2drop f ] if ; inline
|
||||
|
||||
: word-props? ( obj seq -- ? )
|
||||
over word? [ [ word-prop ] with all? ] [ 2drop f ] if ; inline
|
||||
|
||||
: inline? ( obj -- ? ) "inline" word-prop? ; inline
|
||||
|
||||
: recursive? ( obj -- ? ) "recursive" word-prop? ; inline
|
||||
|
||||
: inline-recursive? ( obj -- ? )
|
||||
{ "inline" "recursive" } word-props? ; inline
|
||||
dup inline? [ recursive? ] [ drop f ] if ; inline
|
||||
|
||||
ERROR: cannot-be-inline word ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue