Changeset 7900
- Timestamp:
- Dec 12, 2007, 12:24:17 PM (17 years ago)
- File:
-
- 1 edited
-
branches/working-0711/ccl/level-1/l1-clos.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0711/ccl/level-1/l1-clos.lisp
r7889 r7900 2020 2020 ;; :around or :before methods, give up 2021 2021 (values nil nil))))) 2022 2022 2023 (defparameter *typecheck-slots-in-optimized-make-instance* nil) 2024 2023 2025 2024 2026 ;;; Return a lambda form or NIL. … … 2047 2049 (forms)) 2048 2050 (flet ((generate-type-check (form type &optional spvar) 2049 (let* ((ctype (ignore-errors (specifier-type type)))) 2050 (if (or (null ctype) 2051 (eq ctype *universal-type*) 2052 (typep ctype 'unknown-ctype)) 2053 form 2054 (if spvar 2055 `(if ,spvar 2056 (require-type ,form ',type) 2057 (%slot-unbound-marker)) 2058 `(require-type ,form ',type)))))) 2051 (if (null *typecheck-slots-in-optimized-make-instance*) 2052 form 2053 (let* ((ctype (ignore-errors (specifier-type type)))) 2054 (if (or (null ctype) 2055 (eq ctype *universal-type*) 2056 (typep ctype 'unknown-ctype)) 2057 form 2058 (if spvar 2059 `(if ,spvar 2060 (require-type ,form ',type) 2061 (%slot-unbound-marker)) 2062 `(require-type ,form ',type))))))) 2059 2063 (dolist (slot slotds) 2060 2064 (let* ((initarg (car (slot-definition-initargs slot)))
Note:
See TracChangeset
for help on using the changeset viewer.
