Skip to content

Commit ca39f5b

Browse files
committed
defclass documentation stub
Now can use: (defclass frob nil ((name :documentation "Entity name")) (:documentation "Frob class"))
1 parent ba16a8e commit ca39f5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/clos/std-object.lisp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@
376376
;; accessor writer fn
377377
;; make (setf name) symbolic name
378378
(push-on-end `(setf ,(cadr olist)) writers))
379+
(:documentation)
379380
(otherwise
380381
(push-on-end `',(car olist) other-options)
381382
(push-on-end `',(cadr olist) other-options))))
@@ -398,6 +399,7 @@
398399
(eval-always
399400
(defun canonicalize-defclass-option (option)
400401
(case (car option)
402+
(:documentation)
401403
(:metaclass (list ':metaclass `(!find-class ',(cadr option))))
402404
(:default-initargs
403405
(list ':direct-default-initargs
@@ -492,6 +494,7 @@
492494

493495
;;; N.B. Quietly retain all unknown slot options (rather than signaling an
494496
;;; error), so that it's easy to add new ones.
497+
;;; BUG: this lambda form is not working - &allow-other-keys parsed incorrectly
495498
(defun make-direct-slot-definition
496499
(&rest properties
497500
&key name (initargs ()) (initform nil) (initfunction nil) (readers ()) (writers ()) (allocation :instance)
@@ -506,6 +509,7 @@
506509
(setf (getf* slot ':allocation) allocation)
507510
slot))
508511

512+
;;; BUG: this lambda form is not working - &allow-other-keys parsed incorrectly
509513
(defun make-effective-slot-definition
510514
(&rest properties
511515
&key name (initargs ()) (initform nil) (initfunction nil) (allocation :instance)

0 commit comments

Comments
 (0)