Changeset 274
- Timestamp:
- Jan 13, 2004, 4:50:52 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/lib/macros.lisp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/lib/macros.lisp
r144 r274 1626 1626 (duplicate-options slot) 1627 1627 (setq type-p t)) 1628 (when (null (cadr options)) (signal-program-error "Illegal options ~S" options))1628 ;(when (null (cadr options)) (signal-program-error "Illegal options ~S" options)) 1629 1629 (setq type (cadr options))) 1630 1630 (:initform … … 1672 1672 ,@(mapcar #'(lambda (s) `(note-function-info ',s nil ,env)) 1673 1673 signatures))) 1674 (progn 1675 (record-source-file ',class-name 'class) 1676 (ensure-class ',class-name 1674 (ensure-class-for-defclass ',class-name 1677 1675 :direct-superclasses ',direct-superclasses 1678 1676 :direct-slots ,`(list ,@direct-slot-specs) 1679 ,@other-options))))))) )1677 ,@other-options))))))) 1680 1678 1681 1679 (defmacro define-method-combination (name &rest rest &environment env) … … 1711 1709 options methods option-keywords method-class) 1712 1710 (flet ((bad-option (o) 1713 ( error "Bad option: ~s to ~s." o 'defgeneric)))1711 (signal-program-error "Bad option: ~s to ~s." o 'defgeneric))) 1714 1712 (dolist (o options-and-methods) 1715 1713 (let ((keyword (car o)) … … 1718 1716 (push `(,defmethod ,function-name ,@(%cdr o)) methods) 1719 1717 (cond ((memq keyword (prog1 option-keywords (push keyword option-keywords))) 1720 ( error "Duplicate option: ~s to ~s" keyword 'defgeneric))1718 (signal-program-error "Duplicate option: ~s to ~s" keyword 'defgeneric)) 1721 1719 ((eq keyword :method-name) ; used by generic-flet 1722 1720 (if function-name (bad-option o)) … … 2441 2439 2442 2440 ; I wanted to call this ":method" 2443 (defmacro method (gf &rest qualifiers-and-specializers)2441 (defmacro reference-method (gf &rest qualifiers-and-specializers) 2444 2442 (let ((qualifiers (butlast qualifiers-and-specializers)) 2445 2443 (specializers (car (last qualifiers-and-specializers))))
Note:
See TracChangeset
for help on using the changeset viewer.
