]> gitweb.factorcode.org Git - factor.git/commitdiff
Oops
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 1 May 2009 13:21:31 +0000 (08:21 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 1 May 2009 13:21:31 +0000 (08:21 -0500)
core/compiler/units/units.factor
core/continuations/continuations.factor
core/init/init.factor
core/vocabs/vocabs.factor

index 01ee815511a6b4a5ebf7bc2dd9a14da878f8abc0..f1f9131f088ec2193d3527629c4037fb5eccafc9 100644 (file)
@@ -61,6 +61,10 @@ GENERIC: definitions-changed ( assoc obj -- )
 [ V{ } clone definition-observers set-global ]
 "compiler.units" add-init-hook
 
+! This goes here because vocabs cannot depend on init
+[ V{ } clone vocab-observers set-global ]
+"vocabs" add-init-hook
+
 : add-definition-observer ( obj -- )
     definition-observers get push ;
 
index d46b73f83d9a16b0c6157f1678ba541c258dfaff..56ac4a71e9721b678d38790992ea725f082a2152 100644 (file)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays vectors kernel kernel.private sequences
 namespaces make math splitting sorting quotations assocs
-combinators combinators.private accessors words init ;
+combinators combinators.private accessors words ;
 IN: continuations
 
 SYMBOL: error
@@ -200,5 +200,3 @@ M: condition compute-restarts
     "kernel-error" 6 setenv ;
 
 PRIVATE>
-
-[ init-catchstack init-error-handler ] "continuations" add-init-hook
\ No newline at end of file
index 70464a4ba4e89096b399d91a7bf3816fe61b5ec3..0140fcc0e8cd51fa7678e9bb10a5451e372ceb09 100644 (file)
@@ -1,6 +1,8 @@
 ! Copyright (C) 2004, 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: kernel kernel.private sequences assocs namespaces namespaces.private ;
+USING: continuations continuations.private kernel
+kernel.private sequences assocs namespaces namespaces.private
+continuations continuations.private ;
 IN: init
 
 SYMBOL: init-hooks
@@ -14,7 +16,7 @@ init-hooks global [ drop V{ } clone ] cache drop
     dup init-hooks get at [ over call( -- ) ] unless
     init-hooks get set-at ;
 
-: boot ( -- ) init-namespaces ;
+: boot ( -- ) init-namespaces init-catchstack init-error-handler ;
 
 : boot-quot ( -- quot ) 20 getenv ;
 
index 73ffd1a80c24f9f44bd8e3744327362d61203564..6c12b7b325b48a47586feb5e963b9c048dc1e2be 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2007, 2009 Eduardo Cavazos, Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors assocs strings kernel sorting namespaces
-sequences definitions init ;
+sequences definitions ;
 IN: vocabs
 
 SYMBOL: dictionary
@@ -69,8 +69,6 @@ SYMBOL: vocab-observers
 
 GENERIC: vocabs-changed ( obj -- )
 
-[ V{ } clone vocab-observers set-global ] "vocabs" add-init-hook
-
 : add-vocab-observer ( obj -- )
     vocab-observers get push ;