mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-01 23:30:40 -08:00
The stream argument for DESCRIBE-OBJECT is now a required one, instead of an optional.
This commit is contained in:
parent
642ff7e6c0
commit
be2e427754
3 changed files with 7 additions and 4 deletions
|
|
@ -33,6 +33,9 @@ ECL 0.9f
|
|||
- Now an error is signaled for unmatched parenthesis as in "(1 2 3))".
|
||||
The only exception is in the toplevel, where only a warning is issued.
|
||||
|
||||
- The stream argument for DESCRIBE-OBJECT is now a required one, instead of
|
||||
an optional.
|
||||
|
||||
;;; Local Variables: ***
|
||||
;;; mode:text ***
|
||||
;;; fill-column:79 ***
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
;;; Describe
|
||||
;;; ----------------------------------------------------------------------
|
||||
|
||||
(defmethod describe-object ((obj t) &optional (stream t))
|
||||
(defmethod describe-object ((obj t) (stream t))
|
||||
(let* ((class (class-of obj))
|
||||
(slotds (class-slots class)))
|
||||
(format stream "~%~A is an instance of class ~A"
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
(prin1 "Unbound" stream))))
|
||||
obj)
|
||||
|
||||
(defmethod describe-object ((obj class) &optional (stream t))
|
||||
(defmethod describe-object ((obj class) (stream t))
|
||||
(let* ((class (si:instance-class obj))
|
||||
(slotds (class-slots class)))
|
||||
(format stream "~%~A is an instance of class ~A"
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ because it contains a reference to the undefined class~% ~A"
|
|||
'SLOT-MAKUNBOUND)))
|
||||
instance)
|
||||
|
||||
(defmethod describe-object ((obj standard-object) &optional (stream t))
|
||||
(defmethod describe-object ((obj standard-object) (stream t))
|
||||
(let* ((class (si:instance-class obj))
|
||||
(slotds (class-slots class))
|
||||
slotname has-shared-slots)
|
||||
|
|
@ -584,7 +584,7 @@ because it contains a reference to the undefined class~% ~A"
|
|||
;;; ----------------------------------------------------------------------
|
||||
;;; Methods
|
||||
|
||||
(defmethod describe-object ((obj standard-class))
|
||||
(defmethod describe-object ((obj standard-class) (stream t))
|
||||
(let ((slotds (class-slots (si:instance-class obj))))
|
||||
(format t "~%~A is an instance of class ~A"
|
||||
obj (class-name (si:instance-class obj)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue