]> gitweb.factorcode.org Git - factor.git/commitdiff
hints: switch to using instance?.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 25 Sep 2020 18:11:52 +0000 (11:11 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 25 Sep 2020 18:11:52 +0000 (11:11 -0700)
basis/hints/hints.factor

index 2cea955f0780c384e50d45b2d6a2075496ba9a1e..9a372d5630e8cbe158b5878d11c4c6d5f21fa1dd 100644 (file)
@@ -1,16 +1,15 @@
 ! Copyright (C) 2008, 2010 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors arrays assocs byte-arrays byte-vectors classes
-combinators definitions effects fry generic generic.single
-generic.standard hashtables io.binary io.encodings
-io.streams.string kernel kernel.private math math.parser
-namespaces parser sbufs sequences sequences.private splitting
-splitting.private strings vectors words ;
+combinators definitions fry generic generic.single
+generic.standard hashtables io.binary kernel kernel.private math
+math.parser parser sbufs sequences sequences.private splitting
+strings vectors words ;
 IN: hints
 
 GENERIC: specializer-predicate ( spec -- quot )
 
-M: class specializer-predicate predicate-def ;
+M: class specializer-predicate '[ _ instance? ] ;
 
 M: object specializer-predicate '[ _ eq? ] ;