[closer-devel] Re: slot readers and writers

Nikodemus Siivola nikodemus at random-state.net
Wed Nov 1 17:29:29 UTC 2006


Pascal Costanza <pc at p-cos.net> writes:

>> * slot-readers &co return _names_, not function object, which really
>>   sucks if the symbol has been eg. uninterned or fmakunbound, as that
>>   leaves you without any defined means to get at the generic function.

> (loop for method in (specializer-direct-methods some-class)
>       when (subtypep method 'standard-accessor-method)
>       collect (cons (accessor-method-slot-definition method)
>                     (method-generic-function method)))

Uh. I should have known there is a way... ;-)

Cheers,

  -- Nikodemus              Schemer: "Buddha is small, clean, and serious."
                   Lispnik: "Buddha is big, has hairy armpits, and laughs."



More information about the closer-devel mailing list