Advertisement
Guest User

Untitled

a guest
Aug 20th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.50 KB | None | 0 0
  1. ;; p289
  2.  
  3. (defun make-effective-slot-definition
  4.     (&rest properties
  5.      &key name (initargs ()) (initform nil) (initfunction nil)
  6.        (allocation :instance)
  7.      &allow-other-keys)
  8.   (let ((slot (copy-list properties))) ;; don't want to side-effect &rest list
  9.     (setf (getf* slot ':name) name)
  10.     (setf (getf* slot ':initargs) initargs)
  11.     (setf (getf* slot ':initform) initform)
  12.     (setf (getf* slot ':initfunction) initfunction)
  13.     (setf (getf* slot ':allocation) allocation)
  14.     slot))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement