#172: DOCUMENTATION does not work for generic functions -------------------------+-------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: 0.28 Component: interpreter | Version: 0.27 Keywords: | -------------------------+-------------------------------------------------- DOCUMENTATION does not seem to be able to retrieve the docstring for generic functions:
{{{ (defgeneric foo nil (:documentation "Ipso facto")) #<STANDARD-GENERIC-FUNCTION FOO {6901DFA5}> CL-USER> (documentation 'foo 'function) NIL }}}
If one inspects the generic function in SLIME, one sees that the documentation slot does have a value, so this is a problem in DOCUMENTATION.
#172: DOCUMENTATION does not work for generic functions -------------------------+-------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: 0.28 Component: interpreter | Version: 0.27 Keywords: | -------------------------+--------------------------------------------------
Comment(by mevenson):
Added failing test in r13609.
#172: DOCUMENTATION does not work for generic functions -------------------------+-------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: 0.28 Component: interpreter | Version: 0.27 Keywords: | -------------------------+--------------------------------------------------
Comment(by mevenson):
But passing in the actual function object to DOCUMENTATION works:
{{{ LISP> (documentation #'foo t) "foo" }}}
Need to check the specification a little closer.
#172: DOCUMENTATION does not work for generic functions -------------------------+-------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: 1.0.1 Component: interpreter | Version: 0.27 Keywords: | -------------------------+-------------------------------------------------- Changes (by mevenson):
* milestone: 0.28 => 1.0.1
Comment:
More of a problem in passing the information around the CLOS code.
By following the argument passing around [source:clos.lisp], one could probably fix this reliably.
#172: DOCUMENTATION does not work for generic functions -------------------------+-------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: 1.1.0 Component: interpreter | Version: 0.27 Keywords: | -------------------------+-------------------------------------------------- Changes (by mevenson):
* milestone: 1.0.1 => 1.1.0
#172: DOCUMENTATION does not work for generic functions --------------------------+------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: closed Priority: minor | Milestone: 1.1.0 Component: interpreter | Version: 0.27 Resolution: fixed | Keywords: --------------------------+------------------------------------------------- Changes (by mevenson):
* status: new => closed * resolution: => fixed
Comment:
(In [13750]) Fix #172: DOCUMENTATION now works for generic functions.
LispObject.java didn't know that things other than Function could be in a symbol's function slot.
# From: Rudolf Schlatte rudi@constantly.at # Subject: [armedbear-devel] Patch for bug 172 # Date: January 10, 2012 8:54:16 PM GMT+01:00
armedbear-ticket@common-lisp.net