This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: <srfi-hash-table> unbound in kawa-1.9.90
- From: Helmut Eller <eller dot helmut at gmail dot com>
- To: kawa at sources dot redhat dot com
- Date: Wed, 03 Feb 2010 20:37:44 +0100
- Subject: Re: <srfi-hash-table> unbound in kawa-1.9.90
- References: <87mxzqta3x.fsf@doganov.org>
* Kaloian Doganov [2010-02-03 20:03+0100] writes:
> Is this intentional?
Probably. <srfi-hash-table> isn't mentioned in the SRFI document.
> And if it is, what is the new name of <srfi-hash-table>?
> How one is supposed to use the hashtable type with
> `instance?'?
This seems to work:
(import (srfi :69)) ; same as (require 'srfi-69)
(import (kawa hashtable)) ; srfi-69 is implemented on top of this.
(instance? (make-hash-table) hashtable) ; => t
Alternatively you could do
(import (rename (only (kawa hashtable) hashtable)
(hashtable <srfi-hash-table>)))
which only imports the binding for "hashtable" but renamed to
"<srfi-hash-table>".
Of course, using hash-table? instead of instance? would have the benefit
of being more portable.
Helmut