From: Chris Hanson Date: Sat, 8 Mar 2003 02:05:50 +0000 (+0000) Subject: Don't use WRITE-TO-STRING in ->TYPE-NAME; it gets called too early in X-Git-Tag: 20090517-FFI~1980 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=babc53281ad50ab74dd5fad41722523f506f8ef9;p=mit-scheme.git Don't use WRITE-TO-STRING in ->TYPE-NAME; it gets called too early in the cold load. --- 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) #\<)