Ticket #877 (closed defect: invalid)
sticky default-initargs
| Reported by: | brooks | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Compiler | Version: | 1.6 |
| Keywords: | Cc: |
Description (last modified by gb) (diff)
Redefining a class does not work properly when the first def contains :default-initargs, but the second def does not. What happens is that use of the second def still has the default initiarg.
? (defclass foo () ((x :accessor x :initarg :x)) (:default-initargs :x 2)) ? (describe (make-instance 'foo)) #<FOO #x302093A3C44D> Class: #<STANDARD-CLASS FOO> Wrapper: #<CCL::CLASS-WRAPPER FOO #x302093A3E25D> Instance slots X: 2 ? (defclass foo () ((x :accessor x :initarg :x))) ? (describe (make-instance 'foo)) #<FOO #x302093A3C44D> Class: #<STANDARD-CLASS FOO> Wrapper: #<CCL::CLASS-WRAPPER FOO #x302093A3E25D> Instance slots X: 2
Change History
Note: See
TracTickets for help on using
tickets.
