Changeset 457


Ignore:
Timestamp:
Feb 1, 2004, 11:41:08 AM (21 years ago)
Author:
beer
Message:

PRINT-OBJECT shouldn't die when given an OBJC-OBJECT whose ObjC part has "gone away"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/objc-clos.lisp

    r453 r457  
    216216
    217217(defmethod print-object ((o objc:objc-object) stream)
    218   (print-unreadable-object (o stream :type t)
    219     (format stream
    220             (if (typep o 'ns::ns-string)
    221               "~s (#x~x)"
    222               "~a (#x~x)")
    223             (nsobject-description o) (%ptr-to-int o))))
     218  (if (objc-object-p o)
     219      (print-unreadable-object (o stream :type t)
     220        (format stream
     221                (if (typep o 'ns::ns-string)
     222                    "~s (#x~x)"
     223                  "~a (#x~x)")
     224                (nsobject-description o) (%ptr-to-int o)))
     225    (format stream "#<Bogus ObjC Object #x~X>" (%ptr-to-int o))))
    224226
    225227
Note: See TracChangeset for help on using the changeset viewer.