This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: [...]; hash tables
- To: Doug Orleans <dougo at ccs dot neu dot edu>
- Subject: Re: [...]; hash tables
- From: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Date: Fri, 23 Mar 2001 09:53:59 +0000 (GMT)
- cc: kawa at sourceware dot cygnus dot com
On Thu, 22 Mar 2001, Doug Orleans wrote:
> Hi, I just joined the kawa list. I have a bug report, a suggestions,
> and a question.
>
> ...
>
> Question: has anyone written a Scheme interface to the Java Hashtable
> (or HashMap) class? I don't like the SLIB hashtable implementation
> for various reasons (e.g. doesn't use an opaque type, doesn't allow
> for a user-defined hash function) and rather than writing one from
> scratch I figured it'd make sense to just piggy-back onto Java's. But
> no sense in doing the work if someone else has already done it. (This
> would be another candidate for a contrib page.)
>
Yes, I have. It's not very exciting: defines put!(Hashtable,value),
lookup(Hashtable,value), map->alist(Hashtable), alist->map(list),
and for-each-in-map(proc,Hashtable). But I can post it if you think
worthwhile.
> Thanks,
> --Doug Orleans
> Northeastern University
> dougo@ccs.neu.edu
>
Jocelyn Paine