r4628: Auto commit for Debian build
[hyperobject.git] / rules.lisp
index a597c36d41bb68a155e97be0af897e92804158c4..f2684c33bae09e562e9c4d9a8ed6cc0d6c9430c6 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: rules.lisp,v 1.30 2003/04/24 20:12:24 kevin Exp $
+;;;; $Id: rules.lisp,v 1.32 2003/04/25 03:34:10 kevin Exp $
 ;;;;
 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
 ;;;;
@@ -78,8 +78,8 @@
   #+ignore
   (cmsg-c :verbose "Setf slot value: class: ~s, obj: ~s, slot: ~s, value: ~s" cl (class-of obj) slot new-value)
   
-  (let ((func (esd-value-constraint slot)))
-    (call-next-method)
+  (let ((func (when (slot-boundp slot 'value-constraint)
+               (esd-value-constraint slot))))
     (cond
       ((and func (not (funcall func new-value)))
        (warn "Rejected change to value of slot ~a of object ~a"