#245 closed defect (fixed)
Slots of a class with a custom meta-class are reported as unbound.
| Reported by: | stassats | Owned by: | rschlatte |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.0 |
| Component: | (A)MOP | Version: | |
| Keywords: | Cc: | ||
| Parent Tickets: |
Description
(defpackage test2
(:use :cl :mop))
(in-package test2)
(defclass storable-class (standard-class)
())
(defmethod validate-superclass
((class standard-class) (superclass storable-class))
t)
(defmethod validate-superclass
((class storable-class) (superclass standard-class))
t)
;;;
(defclass identifiable ()
((id :accessor id
:initform 1))
(:metaclass storable-class))
ID slot is unbound and bound at the same time, despite having an
initform.
(describe (make-instance 'identifiable))
#<IDENTIFIABLE {181F4B24}> is an instance of #<STORABLE-CLASS IDENTIFIABLE {1E4B2D10}>.
The following slots have :INSTANCE allocation:
ID unbound
(slot-boundp (make-instance 'identifiable) 'id)
=>
NIL
(slot-value (make-instance 'identifiable) 'id)
=>
1
Change History (3)
comment:1 Changed 13 years ago by
| Milestone: | → 1.1.0 |
|---|---|
| Owner: | changed from ehuelsmann to rschlatte |
| Status: | new → assigned |
comment:2 Changed 13 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Apparently, this has been fixed in ticket:14154