simplified slot access somewhat. layered slots still a little screwy.
[clinton/lisp-on-lines.git] / src / standard-descriptions / clos.lisp
... / ...
CommitLineData
1(in-package :lisp-on-lines)
2
3(define-description standard-object ()
4 ((class-slots :label "Slots"
5 :function (compose 'class-slots 'class-of))))
6
7(define-layered-class slot-definition-attribute (standard-attribute)
8 ((slot-name :initarg :slot-name :accessor attribute-slot-name)))
9
10(define-layered-method attribute-value (object (attribute slot-definition-attribute))
11 (slot-value object (attribute-slot-name attribute)))
12
13
14(define-layered-method description-of ((object standard-object))
15 (find-description 'standard-object))
16
17
18
19
20