Changeset 4623


Ignore:
Timestamp:
11/03/03 03:01:15 (18 years ago)
Author:
piso
Message:

Moved PRINT-UNREADABLE-OBJECT to print-unreadable-object.lisp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/boot.lisp

    r4556 r4623  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: boot.lisp,v 1.122 2003-10-28 02:40:42 piso Exp $
     4;;; $Id: boot.lisp,v 1.123 2003-11-03 03:01:15 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    393393
    394394
    395 (defmacro print-unreadable-object ((object stream &key type identity) &body body)
    396   `(let ((s ,stream)
    397          (obj ,object))
    398      (format s "#<")
    399      ,(when type
    400         '(format s "~S" (type-of obj)))
    401      ,(when (and type (or body identity))
    402         '(format s " "))
    403      ,@body
    404      ,(when (and identity body)
    405         '(format s " "))
    406      ,(when identity
    407         '(format s "@ #x~A" (sys::hashcode-to-string obj)))
    408      (format s ">")
    409      nil))
    410 
    411 
    412395;;; MULTIPLE-VALUE-BIND (from CLISP)
    413396(defmacro multiple-value-bind (varlist form &body body)
Note: See TracChangeset for help on using the changeset viewer.