[Ecls-list] Bug: Wrong specializers for auto-generated setter methods

Pascal Costanza pc at p-cos.net
Sat Mar 25 09:04:04 UTC 2006


Hi,

Consider the following session (current CVS version of ECL on Mac OS X):

 > (use-package :clos)
T
 > (defclass test-object ()
     ((slot :initform 42 :accessor a-slot)))
#<The STANDARD-CLASS TEST-OBJECT>
 > (fdefinition '(setf a-slot))
#<STANDARD-GENERIC-FUNCTION (SETF A-SLOT)>
 > (generic-function-methods *)
(#<STANDARD-METHOD (SETF A-SLOT) (NIL #<The STANDARD-CLASS TEST- 
OBJECT>)>)
 > (method-specializers (car *))
(NIL #<The STANDARD-CLASS TEST-OBJECT>)

The first specializer for an automatically generated setter method  
should be T, not NIL. The wrong specializers causes some code not to  
work, at least in conjunction with one's own metaclasses.


Cheers,
Pascal

-- 
Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium








More information about the ecl-devel mailing list