Changeset 15135
- Timestamp:
- Dec 13, 2011, 1:11:22 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/source/lib/macros.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lib/macros.lisp
r15111 r15135 1980 1980 (let* ((options-seen ()) 1981 1981 (signatures ()) 1982 (slot-names ()) 1983 (slot-initargs ())) 1982 (slot-names ())) 1984 1983 (flet ((canonicalize-defclass-option (option) 1985 1984 (let* ((option-name (car option))) … … 2056 2055 (push setf-name writers)))) 2057 2056 (:initarg 2058 (let* ((initarg (require-type (cadr options) 'symbol)) 2059 (other (position initarg slot-initargs :test #'memq))) 2060 (when other 2061 (warn "Initarg ~s occurs in both ~s and ~s slots" 2062 initarg (nth (1+ other) slot-names) slot-name)) 2063 (push initarg initargs))) 2057 (push (require-type (cadr options) 'symbol) initargs)) 2064 2058 (:type 2065 2059 (if type-p … … 2095 2089 (car (push (list (car options)) other-options))))) 2096 2090 (push (cadr options) (cdr pair)))))) 2097 (push initargs slot-initargs)2098 2091 `(list :name ',slot-name 2099 2092 ,@(when allocation `(:allocation ',allocation))
Note:
See TracChangeset
for help on using the changeset viewer.
