core: use if* in a couple places.
parent
43fcee0d75
commit
a65a293896
|
@ -117,7 +117,7 @@ SYMBOL: callbacks
|
||||||
TUPLE: expiry-check object alien ;
|
TUPLE: expiry-check object alien ;
|
||||||
|
|
||||||
: recompute-value? ( check -- ? )
|
: recompute-value? ( check -- ? )
|
||||||
dup [ alien>> expired? ] [ drop t ] if ;
|
[ alien>> expired? ] [ t ] if* ;
|
||||||
|
|
||||||
: delete-values ( value assoc -- )
|
: delete-values ( value assoc -- )
|
||||||
[ rot drop = not ] with assoc-filter! drop ;
|
[ rot drop = not ] with assoc-filter! drop ;
|
||||||
|
|
|
@ -212,12 +212,11 @@ ERROR: bad-create name vocab ;
|
||||||
|
|
||||||
: create ( name vocab -- word )
|
: create ( name vocab -- word )
|
||||||
check-create 2dup lookup-word
|
check-create 2dup lookup-word
|
||||||
dup [ 2nip ] [
|
[ 2nip ] [
|
||||||
drop
|
|
||||||
vocab-name <word>
|
vocab-name <word>
|
||||||
dup reveal
|
dup reveal
|
||||||
dup changed-definition
|
dup changed-definition
|
||||||
] if ;
|
] if* ;
|
||||||
|
|
||||||
: constructor-word ( name vocab -- word )
|
: constructor-word ( name vocab -- word )
|
||||||
[ "<" ">" surround ] dip create ;
|
[ "<" ">" surround ] dip create ;
|
||||||
|
|
Loading…
Reference in New Issue