From babc53281ad50ab74dd5fad41722523f506f8ef9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 8 Mar 2003 02:05:50 +0000 Subject: [PATCH] Don't use WRITE-TO-STRING in ->TYPE-NAME; it gets called too early in the cold load. --- v7/src/runtime/record.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v7/src/runtime/record.scm b/v7/src/runtime/record.scm index d98c74612..13a3b277c 100644 --- a/v7/src/runtime/record.scm +++ b/v7/src/runtime/record.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: record.scm,v 1.35 2003/03/07 21:18:22 cph Exp $ +$Id: record.scm,v 1.36 2003/03/08 02:05:50 cph Exp $ Copyright 1989,1990,1991,1993,1994,1996 Massachusetts Institute of Technology Copyright 1997,2002,2003 Massachusetts Institute of Technology @@ -400,9 +400,9 @@ USA. (define (->type-name object) (let* ((string - (if (string? object) - object - (write-to-string object))) + (cond ((string? object) object) + ((symbol? object) (symbol-name object)) + (else (error:wrong-type-argument object "type name" #f)))) (n (string-length string))) (if (and (fix:> n 2) (char=? (string-ref string 0) #\<) -- 2.25.1