Changeset 10345


Ignore:
Timestamp:
11/04/05 12:07:02 (16 years ago)
Author:
piso
Message:

(defmethod print-object ((c simple-condition)) stream) ...) => (defmethod print-object ((c condition)) stream) ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/print-object.lisp

    r10343 r10345  
    22;;;
    33;;; Copyright (C) 2003-2005 Peter Graves
    4 ;;; $Id: print-object.lisp,v 1.11 2005-11-04 11:34:18 piso Exp $
     4;;; $Id: print-object.lisp,v 1.12 2005-11-04 12:07:02 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    6969      (restart-report restart stream)))
    7070
     71(defmethod print-object ((c condition) stream)
     72  (if *print-escape*
     73      (call-next-method)
     74      (if (slot-boundp c 'format-control)
     75          (apply #'format stream
     76                 (simple-condition-format-control c)
     77                 (simple-condition-format-arguments c))
     78          (call-next-method))))
     79
    7180(defmethod print-object ((c type-error) stream)
    7281  (if *print-escape*
     
    8089                  (type-error-expected-type c)))))
    8190
    82 (defmethod print-object ((c simple-condition) stream)
    83   (if *print-escape*
    84       (call-next-method)
    85       (let ((format-control (simple-condition-format-control c)))
    86         (if format-control
    87             (apply #'format stream format-control
    88                    (simple-condition-format-arguments c))
    89             (call-next-method)))))
    90 
    9191(defmethod print-object ((x undefined-function) stream)
    9292  (if *print-escape*
Note: See TracChangeset for help on using the changeset viewer.