r9592: ready for boa
[kmrcl.git] / attrib-class.lisp
index d4e40d557830c19bf5e2f4b56b31030626d6b81a..12572a290e458f671d0ee2553589abbf32687349 100644 (file)
@@ -1,4 +1,4 @@
-;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: kmrcl-*-
 ;;;; *************************************************************************
 ;;;; FILE IDENTIFICATION
 ;;;;
@@ -7,15 +7,19 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: attrib-class.lisp,v 1.17 2003/08/29 19:44:37 kevin Exp $
+;;;; $Id$
 ;;;;
-;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of KMRCL, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
 ;;;;
 ;;;; KMRCL users are granted the rights to distribute and use this software
 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
+;; Disable attrib class until understand changes in sbcl/cmucl
+;; using COMPUTE-SLOT-ACCESSOR-INFO and defining method
+;; for slot access of ALL-ATTRIBUTES. Does this work on Allegro/LW?
+
 ;;;; Defines a metaclass that allows the use of attributes (or subslots)
 ;;;; on slots. Based on example in AMOP, but modified to use ACL's MOP.
 
@@ -57,6 +61,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 +71,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
-          :documentation "Attribute bucker"
+          :documentation "Attribute bucket"
           :type t
-          #-lispworks :class #-lispworks class
-          ;; This is an attempted work-around -- lispworks doesn't work
-          ;; it appears to setup storage someplace
-          ;; #+lispworks :location #+lispworks (length normal-slots)
           )
          normal-slots)))