#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.489 2004/07/04 05:28:56 cph Exp $
+$Id: runtime.pkg,v 14.490 2004/07/15 04:05:16 cph Exp $
Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
string-head->symbol
string-tail->symbol
substring->symbol
+ symbol
symbol->string
symbol-append
symbol-hash
#| -*-Scheme-*-
-$Id: symbol.scm,v 1.14 2004/01/15 20:59:12 cph Exp $
+$Id: symbol.scm,v 1.15 2004/07/15 04:05:39 cph Exp $
Copyright 1992,1993,2001,2003,2004 Massachusetts Institute of Technology
(define (string-tail->symbol string start)
((ucode-primitive string->symbol) (string-tail string start)))
+
+(define (symbol . objects)
+ ((ucode-primitive string->symbol)
+ (apply string-append
+ (map (lambda (object)
+ (cond ((string? object) object)
+ ((symbol? object) (symbol-name object))
+ ((number? object) (number->string object))
+ ((not object) "")
+ (else
+ (error:wrong-type-argument object
+ "symbol component"
+ 'SYMBOL))))
+ objects))))
\f
(define (intern string)
(if (string-lower-case? string)