Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 787 Bytes
;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;; See the file LICENCE for licence information.
(in-package :cl-store)
(defmacro use-primitive (partial-name)
(let* ((pname (symbol-name partial-name))
(standard-name (symbolicate "SLOT-DEFINITION-" pname))
(primitive (find-symbol
(format nil "%SLOT-DEFINITION-~a" pname)
`(defmethod ,standard-name (slotdef)
(,primitive slotdef))))
(use-primitive name)
(use-primitive allocation)
(use-primitive initform)
(use-primitive initargs)
(use-primitive readers)
(use-primitive writers)
(defun class-slots (object)
(system:%class-slots object))
;; This doesn't seem to be available in ABCL
(defmethod slot-definition-type (slotdef)
;; EOF
Something went wrong with that request. Please try again.