From: Joe Marshall Date: Sun, 20 Dec 2009 19:29:17 +0000 (-0800) Subject: Allow uninterned symbols to be weak keys. X-Git-Tag: 20100708-Gtk~195^2~4 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=097a3ee6c70d396a3277fb96374abbfc2da86e51;p=mit-scheme.git Allow uninterned symbols to be weak keys. --- diff --git a/src/runtime/hashtb.scm b/src/runtime/hashtb.scm index 73208d586..629b6adc1 100644 --- a/src/runtime/hashtb.scm +++ b/src/runtime/hashtb.scm @@ -294,7 +294,7 @@ USA. (define-integrable (%weak-make-entry key datum) (if (or (not key) (number? key) ;Keep numbers in table. - (symbol? key)) ;Symbols, too. + (interned-symbol? key)) ;Symbols, too. (cons key datum) (system-pair-cons (ucode-type weak-cons) key datum)))