"R Alemi" <[EMAIL PROTECTED]> writes: > Dear list members, is there a way for me to find out which slots of > my class have :class allocation, and which have :instance; the way > describe finds out? I failed to find the answer in CLTL2 and > Hyperspec. where to look?
http://www.lisp.org/mop/index.html (defclass test () ((foo :allocation :instance) (bar :allocation :class))) (loop for slot in (pcl:class-direct-slots (pcl:find-class 'test)) collect (cons (pcl:slot-definition-name slot) (pcl:slot-definition-allocation slot))) -- jan
