Merge branch 'master' of git://factorcode.org/git/factor
commit
01005078f5
|
@ -3,7 +3,7 @@
|
||||||
USING: accessors kernel words parser io summary quotations
|
USING: accessors kernel words parser io summary quotations
|
||||||
sequences prettyprint continuations effects definitions
|
sequences prettyprint continuations effects definitions
|
||||||
compiler.units namespaces assocs tools.walker generic
|
compiler.units namespaces assocs tools.walker generic
|
||||||
inspector ;
|
inspector fry ;
|
||||||
IN: tools.annotations
|
IN: tools.annotations
|
||||||
|
|
||||||
GENERIC: reset ( word -- )
|
GENERIC: reset ( word -- )
|
||||||
|
@ -49,10 +49,7 @@ M: word reset
|
||||||
.s
|
.s
|
||||||
] if* "\\--" print flush ;
|
] if* "\\--" print flush ;
|
||||||
|
|
||||||
: (watch) ( word def -- def )
|
: (watch) ( word def -- def ) over '[ _ entering @ _ leaving ] ;
|
||||||
over [ entering ] curry
|
|
||||||
rot [ leaving ] curry
|
|
||||||
swapd 3append ;
|
|
||||||
|
|
||||||
: watch ( word -- )
|
: watch ( word -- )
|
||||||
dup [ (watch) ] annotate ;
|
dup [ (watch) ] annotate ;
|
||||||
|
|
Loading…
Reference in New Issue