This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
rnrs hashtables
- From: Jamison Hope <jrh at theptrgroup dot com>
- To: kawa at sourceware dot org
- Date: Wed, 13 Oct 2010 15:27:04 -0400
- Subject: rnrs hashtables
I just tried to do this:
(import (rnrs hashtables))
(define objects :: hashtable (make-eq-hashtable))
and got the error "unknown type name 'hashtable'". So I looked, and,
sure enough, 'hashtable' isn't exported. This works:
(import (rnrs hashtables)
(only (kawa hashtable) hashtable))
(define objects :: hashtable (make-eq-hashtable))
but seems a little tedious. I know that kawa/lib/rnrs/hashtables.scm
is exporting exactly the set of functions called for in the R6RS
chapter on Hashtables, and so I'm not sure whether to classify this as
a bug or just an inconvenience.
There's obviously contention between pure (untyped) RNRS Scheme and
native (typed) Kawa; Per, is it your intention when implementing rnrs
standard libraries to export only the functions in the spec and not
the underlying data types which they use? That should be in the
documentation, I think.
-Jamie
--
Jamison Hope
The PTR Group
www.theptrgroup.com