DOCUMENTATION works on instances of FUNCALLABLE-STANDARD-CLASS
commitbc49b103c8f12f6abe368f677ad36f27cecc4bdf
authorJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Thu, 3 Jul 2014 10:44:04 +0000 (3 12:44 +0200)
committerJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Sun, 10 Aug 2014 17:47:12 +0000 (10 19:47 +0200)
tree706ebbc96554a5e07f095117f3a18ea08eb11dda
parentd5946b7250aad085bf7025bbf9b142cd509cf28b
DOCUMENTATION works on instances of FUNCALLABLE-STANDARD-CLASS

Previously, methods on DOCUMENTATION and (SETF DOCUMENTATION) were
specialized on STANDARD-CLASS, excluding FUNCALLABLE-STANDARD-CLASS.

While this was in line with the method signatures listed in the CLHS
entry for DOCUMENTATION, that entry also states (for DOC-TYPE equal to
TYPE):

  If x is a symbol, returns the documentation string of the class whose
  name is the symbol x [...]

indicating that (documentation CLASS-NAME 'type) should work for all
kinds of classes.

Specializing the four methods on CLASS instead STANDARD-CLASS is
1) sufficient to enable operation on FUNCALLABLE-STANDARD-CLASS
2) safe since the accessed %DOCUMENTATION slot is located in CLASS
NEWS
src/pcl/documentation.lisp
tests/interface.impure.lisp