]> gitweb.factorcode.org Git - factor.git/commitdiff
install deprecation definition-observer as an init-hook
authorJoe Groff <arcata@gmail.com>
Thu, 20 Aug 2009 21:18:06 +0000 (16:18 -0500)
committerJoe Groff <arcata@gmail.com>
Thu, 20 Aug 2009 21:18:06 +0000 (16:18 -0500)
basis/tools/deprecation/deprecation.factor

index 397fc8719d449e79418b579cd931bbcda786b835..90dba554cb206c4b9e273816d674d353ed60c369 100644 (file)
@@ -1,6 +1,6 @@
 ! (c)2009 Joe Groff bsd license
 USING: accessors arrays assocs compiler.units
-debugger io kernel namespaces prettyprint sequences
+debugger init io kernel namespaces prettyprint sequences
 source-files.errors summary tools.crossref
 tools.crossref.private tools.errors words ;
 IN: tools.deprecation
@@ -67,6 +67,7 @@ M: deprecation-observer definitions-changed
     [ [ check-deprecations ] each ]
     [ drop initialize-deprecation-notes ] if ;
 
-\ deprecation-observer add-definition-observer
+[ \ deprecation-observer add-definition-observer ] 
+"tools.deprecation" add-init-hook
 
 initialize-deprecation-notes