Fix problem with printing of SOS instances.
authorChris Hanson <org/chris-hanson/cph>
Thu, 6 Sep 2018 01:09:56 +0000 (18:09 -0700)
committerChris Hanson <org/chris-hanson/cph>
Thu, 6 Sep 2018 01:09:56 +0000 (18:09 -0700)
src/sos/instance.scm
src/sos/tvector.scm

index fba341f24985d7b1a7a43184167e833758e0d826..29fded5c7e9119a54b72e5b3c80c96fb19efb453 100644 (file)
@@ -331,6 +331,7 @@ USA.
 (define (instance? object)
   (and (tagged-vector? object)
        (class-tag? (tagged-vector-tag object))))
+(register-predicate! instance? 'instance '<= tagged-vector?)
 
 (define (instance-class instance)
   (dispatch-tag->class (tagged-vector-tag instance)))
index b77f2e8ddc4a0331221a8e6509881886eeef816f..46a034b6614efa4ba4b13e88a4caaffedc959029 100644 (file)
@@ -44,6 +44,7 @@ USA.
 (define (tagged-vector? object)
   (and (%record? object)
        (dispatch-tag? (%record-ref object 0))))
+(register-predicate! tagged-vector? 'tagged-vector '<= %record?)
 
 (define (tagged-vector-tag vector)
   (guarantee-tagged-vector vector 'TAGGED-VECTOR-TAG)