Commit [bc49b1]  Maximize  Restore  History

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

Jan Moringen Jan Moringen 2014-07-03

changed NEWS
changed src/pcl/documentation.lisp
changed tests/interface.impure.lisp
NEWS Diff Switch to side-by-side view
Loading...
src/pcl/documentation.lisp Diff Switch to side-by-side view
Loading...
tests/interface.impure.lisp Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks