A method might not be attached to any generic function. In that case print it as UNNAMED.

This commit is contained in:
jjgarcia 2005-11-04 09:45:19 +00:00
parent db371a2edc
commit 2bd547f0eb
2 changed files with 8 additions and 1 deletions

View file

@ -32,6 +32,9 @@ ECL 0.9h
a syntax error to have a denominator full of zeros (CLHS 2.2 end plus
2.3.2.1.2).
- When a DEFMETHOD form had an incongruent lambda list, an internal error
prevented ECL from writing the proper error message.
* Design:
- Simplified the structure of the frame stack, removing redundant fields.

View file

@ -103,7 +103,11 @@
(defmethod print-object ((m standard-method) stream)
(print-unreadable-object (m stream :type t)
(format stream "~A ~A" (generic-function-name (method-generic-function m))
(format stream "~A ~A"
(let ((gf (method-generic-function m)))
(if gf
(generic-function-name gf)
'UNNAMED))
(method-specializers m)))
m)