]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.deploy.shaker: more compact next-method shaking
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Mon, 24 Aug 2009 00:18:12 +0000 (19:18 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Mon, 24 Aug 2009 00:18:12 +0000 (19:18 -0500)
basis/tools/deploy/shaker/next-methods.factor
basis/tools/deploy/shaker/shaker.factor

index 2bff4075253eaccbc9839a0e0bb63cd6d61a2bf8..4e771d24fdb9ed6380ea99c3a36ba411da033d00 100644 (file)
@@ -1,4 +1,5 @@
-USING: words ;
+USING: kernel words ;
 IN: generic
 
-: next-method-quot ( method -- quot ) "next-method-quot" word-prop ;
+: (call-next-method) ( method -- )
+    dup "next-method" word-prop execute ;
index a0eb9b5c7fb77ef4fd9cc3a326c23bd51a9e29eb..c6b67313214ac2214e3e43ac33a21b9caadb64cd 100755 (executable)
@@ -443,17 +443,15 @@ SYMBOL: deploy-vocab
     t "quiet" set-global
     f output-stream set-global ;
 
-: unsafe-next-method-quot ( method -- quot )
+: next-method* ( method -- quot )
     [ "method-class" word-prop ]
     [ "method-generic" word-prop ] bi
-    next-method 1quotation ;
+    next-method ;
 
 : compute-next-methods ( -- )
     [ standard-generic? ] instances [
         "methods" word-prop [
-            nip dup
-            unsafe-next-method-quot
-            "next-method-quot" set-word-prop
+            nip dup next-method* "next-method" set-word-prop
         ] assoc-each
     ] each
     "vocab:tools/deploy/shaker/next-methods.factor" run-file ;