Re: Call for improvements to hash table management functions

From: Giorgio Cesana <>
Date: Mon, 6 Mar 1995 14:31:16 +0100

Dear all,

] A corrected version of hash.c has been placed in
] -- Erick

I am sorry, but a contribution of mine was missing.

Actually Hash table Management functions accepts string keywords, but those type
is not well managed. In fact:

STk> (define HT (make-hash-table))
STk> (hash-table-put! HT "TEST1" "item1")
STk> (hash-table-get HT "TEST1")
*** Error:
hash-table-get: entry not defined: "TEST1"
STk> (hash-table-put! HT "TEST1" "item2")
STk> (hash-table->list HT)
(("TEST1" . "item1") ("TEST1" . "item2"))

The problem seems due to the use of eq? instead of equal? (STk make use of
Tcl hash table, that uses strings)..




Giorgio Cesana | SGS-THOMSON Microelectronics
phone +39/39/603.6006 | Central R&D - DAIS
fax +39/39/603.5820 | via C. Olivetti, 2
e-mail | 20041 Agrate (MI) - ITALY
Received on Mon Mar 06 1995 - 14:41:09 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST