SB-KERNEL:%FUN-NAME on implicitly created generic functions
Bug #520695 reported by
Tobias C. Rittweiler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Invalid
|
Medium
|
Unassigned |
Bug Description
(defmethod method-
(with-test (:name :method-
(assert (eq (sb-kernel:
;;; Currently (1.0.35.x) %FUN-NAME returns
;;;
;;; (LAMBDA (&REST SB-PCL::ARGS))
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
First of all, this behavior has nothing to do with whether the GF was implicit or not. GENERIC- FUNCTION F (0)> %fun-name #'f) :MAKE-INITIAL- DFUN)
* (defgeneric f (x))
#<STANDARD-
* (sb-kernel:
(LAMBDA (&REST SB-PCL::ARGS) :IN SB-PCL:
But the correct accessor is FUN-NAME, or more portably (nth-value 2 (function- lambda- expression x))