From 3cf6e580efe9fa4ca3e1af6fca7b72cc9346a0c7 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 15 Jul 2004 04:07:40 +0000 Subject: [PATCH] Allow SYMBOL to accept characters as arguments. --- v7/src/runtime/symbol.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.25.1