]> gitweb.factorcode.org Git - factor.git/commitdiff
use ``tuple-slots`` instead of ``tuple>array rest``.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 23 May 2014 20:27:59 +0000 (13:27 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 23 May 2014 20:27:59 +0000 (13:27 -0700)
basis/inverse/inverse.factor
basis/serialize/serialize.factor
extra/graphviz/dot/dot.factor

index 5f6a8bac2b9605f38d55887828e98f2fd783d726..35399c0132d80d037abd854bda34b1f4ce0f1607 100644 (file)
@@ -259,7 +259,7 @@ DEFER: __
 
 : empty-inverse ( class -- quot )
     deconstruct-pred
-    [ tuple>array rest [ ] any? [ fail ] when ]
+    [ tuple-slots [ ] any? [ fail ] when ]
     compose ;
 
 \ new 1 [ ?wrapped empty-inverse ] define-pop-inverse
index add35b21f62d6f1fe46c5d0461cd3ec2cf8e2df7..0b7c4df97a231c1af1cc44438ee2c22e9fdf6b04 100644 (file)
@@ -93,7 +93,7 @@ M: tuple (serialize) ( obj -- )
         CHAR: T write1
         [ class-of (serialize) ]
         [ add-object ]
-        [ tuple>array rest (serialize) ]
+        [ tuple-slots (serialize) ]
         tri
     ] serialize-shared ;
 
index 2f27d58195baba3bce9c6456b43505f5d566f1b9..105caf327e84ec0bb8d4d06448bd35e19bc024eb 100644 (file)
@@ -51,7 +51,7 @@ M: subgraph dot.
 
 : attributes. ( attrs -- )
     "[" write
-    [ class-of "slots" word-prop ] [ tuple>array rest ] bi
+    [ class-of "slots" word-prop ] [ tuple-slots ] bi
     [ [ name>> ] dip attribute, ] 2each
     "]" write ;