From e0a28ef67f45735c40b5664a90e2564753cf25de Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 24 Sep 2003 03:38:57 +0000 Subject: [PATCH] Implement SUBSTRING->SYMBOL. --- v7/src/runtime/runtime.pkg | 3 ++- v7/src/runtime/symbol.scm | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index d1f35fe57..1c6107489 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.457 2003/09/19 00:39:32 cph Exp $ +$Id: runtime.pkg,v 14.458 2003/09/24 03:38:57 cph Exp $ Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology @@ -460,6 +460,7 @@ USA. interned-symbol? string->symbol string->uninterned-symbol + substring->symbol symbol->string symbol-append symbol-hash diff --git a/v7/src/runtime/symbol.scm b/v7/src/runtime/symbol.scm index 0a71306be..b0aa3e8d9 100644 --- a/v7/src/runtime/symbol.scm +++ b/v7/src/runtime/symbol.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: symbol.scm,v 1.11 2003/07/29 03:45:02 cph Exp $ +$Id: symbol.scm,v 1.12 2003/09/24 03:38:46 cph Exp $ Copyright 1992,1993,2001,2003 Massachusetts Institute of Technology @@ -63,6 +63,9 @@ USA. (or ((ucode-primitive find-symbol) string) ((ucode-primitive string->symbol) (string-copy string)))) +(define (substring->symbol string start end) + ((ucode-primitive string->symbol) (substring string start end))) + (define (intern string) (if (string-lower-case? string) (string->symbol string) -- 2.25.1