This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Scheme style auto-resizing hashtable (fwd)


On Tue, 27 Oct 1998, Maciej Stachowiak wrote:

> It's probably more useful to specify the equality predicate and hasher
> when creating the hash table as others have mentioned, otherwise your
> precomputed hash values will be worthless.

yeah, make-hashtabq make-hashtabv make-hashtab, I guess the hash table
header could remember how it was made.  But would I still have
hashtab-setq!, hashtab-delv!, etc.  And then verify that the table was
made by the approproate constructor?  Or would I simply have one
hashtab-set!, hashtab-del!, etc. and then call the appropriate (internal) 
procedure? 

> > I don't plan on writing an iterator...
> 
> If you have hashtable-foreach you could write one using call/cc anyway.

fair enough.