]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.annotations: document the fact that certain words should not be annotated
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 9 Sep 2009 01:49:12 +0000 (20:49 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 9 Sep 2009 01:49:12 +0000 (20:49 -0500)
basis/tools/annotations/annotations-docs.factor

index ba6572c202a10cd4b25ebc57d39cd3a13df70f9d..89ef6192c64813374fa7ab748e058b256c332ddc 100644 (file)
@@ -16,7 +16,10 @@ $nl
 { $subsection add-timing }
 { $subsection word-timing. }
 "All of the above words are implemented using a single combinator which applies a quotation to a word definition to yield a new definition:"
-{ $subsection annotate } ;
+{ $subsection annotate }
+{ $warning
+    "Certain internal words, such as words in the " { $vocab-link "math" } ", " { $vocab-link "sequences" } " and UI vocabularies, cannot be annotated, since the annotated code may end up recursively invoking the word in question. This may crash or hang Factor. It is safest to only define annotations on your own words."
+} ;
 
 ABOUT: "tools.annotations"