]> gitweb.factorcode.org Git - factor.git/blobdiff - core/source-files/errors/errors.factor
core: trim using lists with lint.vocabs tool
[factor.git] / core / source-files / errors / errors.factor
index fd790dcb4c6166d6b6646cf43ef2c609dd72f6a3..49dbf64ce953a29ffcf2d74850dde7f21c194193 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors assocs continuations definitions init io
+USING: accessors assocs continuations definitions io
 kernel math math.parser namespaces sequences sorting ;
 IN: source-files.errors
 
@@ -68,9 +68,7 @@ GENERIC: errors-changed ( observer -- )
 
 SYMBOL: error-observers
 
-[
-    V{ } clone error-observers set-global
-] "source-files.errors" add-startup-hook
+STARTUP-HOOK: [ V{ } clone error-observers set-global ]
 
 : add-error-observer ( observer -- )
     error-observers get push ;