Re: Call for improvements to hash table management functions

From: Giorgio Cesana <cesana_at_venus.sgs-thomson.it>
Date: Mon, 6 Mar 1995 14:31:16 +0100

Dear all,

] A corrected version of hash.c has been placed in
] ftp://kaolin.unice.fr/pub/Patches/hash.c
]
]
] -- 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))
#[undefined]
STk> (hash-table-put! HT "TEST1" "item1")
#[undefined]
STk> (hash-table-get HT "TEST1")
*** Error:
hash-table-get: entry not defined: "TEST1"
STk> (hash-table-put! HT "TEST1" "item2")
#[undefined]
STk> (hash-table->list HT)
(("TEST1" . "item1") ("TEST1" . "item2"))
STk>

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

Regards

Giorgio


-------------------------------------------------------------------------------

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 cesana_at_venus.sgs-thomson.it | 20041 Agrate B.za (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