projects
/
kmrcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r8538: changes
[kmrcl.git]
/
attrib-class.lisp
diff --git
a/attrib-class.lisp
b/attrib-class.lisp
index d1d47bd239fd572c0c40d0d3d59be6fe1445af19..378bae0f6fb832cfde0376b0985d81b331287aa5 100644
(file)
--- a/
attrib-class.lisp
+++ b/
attrib-class.lisp
@@
-1,4
+1,4
@@
-;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10
-*-
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10
; Package: kmrcl
-*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
@@
-9,7
+9,7
@@
;;;;
;;;; $Id$
;;;;
;;;;
;;;; $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
;;;;
;;;; KMRCL users are granted the rights to distribute and use this software
;;;; as governed by the terms of the Lisp Lesser GNU Public License
@@
-57,6
+57,8
@@
on example from AMOP"))
(setf (esd-attributes esd) (remove-duplicates (mapappend #'dsd-attributes dsds)))
esd))
(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
(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)))
(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
(cons (make-instance
'attributes-esd
:name 'all-attributes
:initform `',alist
:initfunction #'(lambda () alist)
:allocation :instance
- :documentation "Attribute bucke
r
"
+ :documentation "Attribute bucke
t
"
:type t
: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)))
)
normal-slots)))