tools.annotations: Use fry in '(watch)'

db4
Eduardo Cavazos 2008-09-13 04:09:13 -05:00
parent 8779784798
commit d2646cfe1b
1 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,7 @@
USING: accessors kernel words parser io summary quotations
sequences prettyprint continuations effects definitions
compiler.units namespaces assocs tools.walker generic
inspector ;
inspector fry ;
IN: tools.annotations
GENERIC: reset ( word -- )
@ -49,10 +49,7 @@ M: word reset
.s
] if* "\\--" print flush ;
: (watch) ( word def -- def )
over [ entering ] curry
rot [ leaving ] curry
swapd 3append ;
: (watch) ( word def -- def ) over '[ _ entering @ _ leaving ] ;
: watch ( word -- )
dup [ (watch) ] annotate ;