From 86bca959d1cf4712780d9594e1606af28c1f480d Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 4 Jun 1997 22:44:21 +0000 Subject: [PATCH] Reimplement INSTANCE-PREDICATE to return a generic procedure. Move INSTANCE-PREDICATE and INSTANCE-OF? to "instance.scm". --- v7/src/sos/instance.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v7/src/sos/instance.scm b/v7/src/sos/instance.scm index 976c78a6c..41fbc1f47 100644 --- a/v7/src/sos/instance.scm +++ b/v7/src/sos/instance.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: instance.scm,v 1.2 1997/06/04 22:28:54 cph Exp $ +;;; $Id: instance.scm,v 1.3 1997/06/04 22:44:21 cph Exp $ ;;; ;;; Copyright (c) 1995-97 Massachusetts Institute of Technology ;;; @@ -158,7 +158,8 @@ (dispatch-tag-contents (tagged-vector-tag instance))) (define (instance-predicate class) - (guarantee-class class 'INSTANCE-PREDICATE) + (if (not (class? class)) + (error:wrong-type-argument class "class" 'INSTANCE-PREDICATE)) (let ((predicate (make-generic-procedure 1))) (let ((add (lambda (c v) -- 2.25.1