r8056: add color functions
[kmrcl.git] / attrib-class.lisp
index 26a645a6248dc1b7a65ca179de96de5d89968a78..76f140ec58682e56f363d529e35f2ccf4553b2fa 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: attrib-class.lisp,v 1.16 2003/07/01 22:16:40 kevin Exp $
+;;;; $Id$
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -57,6 +57,8 @@ on example from AMOP"))
     (setf (esd-attributes esd) (remove-duplicates (mapappend #'dsd-attributes dsds)))
     esd))
 
+;; This does not work in Lispworks prior to version 4.3
+
 (defmethod kmr-mop:compute-slots ((class attributes-class))
   (let* ((normal-slots (call-next-method))
         (alist (mapcar
@@ -65,18 +67,15 @@ on example from AMOP"))
                           (mapcar #'(lambda (attr) (list attr))
                                   (esd-attributes slot))))
                 normal-slots)))
-    (cons (make-instance 'attributes-esd
-                        :name 'all-attributes
-                        :initform `',alist
-                        :initfunction #'(lambda () alist)
-                        :allocation :instance
-                        :class class
-                        :documentation ""
-                        :type t
-                        ;; This is an attempted work-around -- lispworks doesn't work
-                        ;; it appears to setup storage someplace
-                        ;; #+lispworks :location #+lispworks (length normal-slots)
-                        )
+    (cons (make-instance
+          'attributes-esd
+          :name 'all-attributes
+          :initform `',alist
+          :initfunction #'(lambda () alist)
+          :allocation :instance
+          :documentation "Attribute bucker"
+          :type t
+          )
          normal-slots)))
   
 (defun slot-attribute (instance slot-name attribute)