Opened 13 years ago
Closed 13 years ago
#172 closed defect (fixed)
DOCUMENTATION does not work for generic functions
Reported by: | Mark Evenson | Owned by: | ehuelsmann |
---|---|---|---|
Priority: | minor | Milestone: | 1.1.0 |
Component: | interpreter | Version: | 0.27 |
Keywords: | Cc: | ||
Parent Tickets: |
Description
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.
Change History (5)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
But passing in the actual function object to DOCUMENTATION works:
LISP> (documentation #'foo t) "foo"
Need to check the specification a little closer.
comment:3 Changed 13 years ago by
Milestone: | 0.28 → 1.0.1 |
---|
More of a problem in passing the information around the CLOS code.
By following the argument passing around clos.lisp, one could probably fix this reliably.
comment:4 Changed 13 years ago by
Milestone: | 1.0.1 → 1.1.0 |
---|
comment:5 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(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@…>
# Subject: [armedbear-devel] Patch for bug 172
# Date: January 10, 2012 8:54:16 PM GMT+01:00
Added failing test in r13609.