tools.annotations: add a predicate class for annotated words.

db4
John Benediktsson 2012-07-27 14:06:38 -07:00
parent 7cb973009a
commit c6810293a0
1 changed files with 3 additions and 3 deletions

View File

@ -29,12 +29,12 @@ ERROR: cannot-annotate-twice word ;
M: cannot-annotate-twice summary drop "Cannot annotate a word twice" ;
PREDICATE: annotated < word "unannotated-def" word-prop >boolean ;
<PRIVATE
: check-annotate-twice ( word -- word )
dup "unannotated-def" word-prop [
cannot-annotate-twice
] when ;
dup annotated? [ cannot-annotate-twice ] when ;
: annotate-generic ( word quot -- )
[ "methods" word-prop values ] dip each ; inline