From: Joe Marshall Date: Tue, 27 Jul 2010 19:33:58 +0000 (-0700) Subject: Implement SYMBOL>? X-Git-Tag: 20101212-Gtk~126^2 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=31323ac44527f1b96140113fb5b36b5ffb160586;p=mit-scheme.git Implement SYMBOL>? --- diff --git a/src/runtime/runtime.pkg b/src/runtime/runtime.pkg index 063d4ca6e..47a222cba 100644 --- a/src/runtime/runtime.pkg +++ b/src/runtime/runtime.pkg @@ -549,6 +549,7 @@ USA. symbol-hash-mod symbol-name symbol? symbol? uninterned-symbol? utf8-string->symbol diff --git a/src/runtime/symbol.scm b/src/runtime/symbol.scm index 5ed2a3a0c..07759a22f 100644 --- a/src/runtime/symbol.scm +++ b/src/runtime/symbol.scm @@ -129,9 +129,7 @@ USA. (define (symbol-hash-mod symbol modulus) (string-hash-mod (symbol-name symbol) modulus)) -(define (symbol? x y) + (guarantee-symbol x 'SYMBOL>?) + (guarantee-symbol y 'SYMBOL>?) + (%symbolutf8-string symbol) (string-copy (symbol-name symbol)))