tools.annotations: Use fry in '(watch-vars)'
parent
d2646cfe1b
commit
1bf65e6dc5
|
@ -55,11 +55,12 @@ M: word reset
|
||||||
dup [ (watch) ] annotate ;
|
dup [ (watch) ] annotate ;
|
||||||
|
|
||||||
: (watch-vars) ( quot word vars -- newquot )
|
: (watch-vars) ( quot word vars -- newquot )
|
||||||
[
|
rot
|
||||||
"--- Entering: " write swap .
|
'[
|
||||||
"--- Variable values:" print
|
"--- Entering: " write _ .
|
||||||
[ dup get ] H{ } map>assoc describe
|
"--- Variable values:" print _ [ dup get ] H{ } map>assoc describe
|
||||||
] 2curry prepose ;
|
@
|
||||||
|
] ;
|
||||||
|
|
||||||
: watch-vars ( word vars -- )
|
: watch-vars ( word vars -- )
|
||||||
dupd [ (watch-vars) ] 2curry annotate ;
|
dupd [ (watch-vars) ] 2curry annotate ;
|
||||||
|
|
Loading…
Reference in New Issue