From: Chris Hanson Date: Thu, 15 Jul 2004 04:07:40 +0000 (+0000) Subject: Allow SYMBOL to accept characters as arguments. X-Git-Tag: 20090517-FFI~1620 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=3cf6e580efe9fa4ca3e1af6fca7b72cc9346a0c7;p=mit-scheme.git Allow SYMBOL to accept characters as arguments. --- diff --git a/v7/src/runtime/symbol.scm b/v7/src/runtime/symbol.scm index 6a3240191..eb24c8e4d 100644 --- a/v7/src/runtime/symbol.scm +++ b/v7/src/runtime/symbol.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: symbol.scm,v 1.15 2004/07/15 04:05:39 cph Exp $ +$Id: symbol.scm,v 1.16 2004/07/15 04:07:40 cph Exp $ Copyright 1992,1993,2001,2003,2004 Massachusetts Institute of Technology @@ -80,8 +80,9 @@ USA. ((ucode-primitive string->symbol) (apply string-append (map (lambda (object) - (cond ((string? object) object) - ((symbol? object) (symbol-name object)) + (cond ((symbol? object) (symbol-name object)) + ((string? object) object) + ((char? object) (string object)) ((number? object) (number->string object)) ((not object) "") (else