unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #22022] hashx-set! and -ref
@ 2008-01-14 22:40 Gregory Marton
  2008-01-17 21:52 ` Neil Jerram
  2008-01-17 23:13 ` Neil Jerram
  0 siblings, 2 replies; 13+ messages in thread
From: Gregory Marton @ 2008-01-14 22:40 UTC (permalink / raw)
  To: Gregory Marton, bug-guile


URL:
  <http://savannah.gnu.org/bugs/?22022>

                 Summary: hashx-set! and -ref
                 Project: Guile
            Submitted by: gremio
            Submitted on: Monday 01/14/2008 at 22:40
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hashing using ones own hash functions does not survive a hash resize.

If the assoc function returns #t, a segfault or bus error results.

A patch to the test suite demonstrating these and testing a few other things
is attached.

As an enhancement request, it would be nice for the common case to be able to
pass a hash-function argument and assoc to make-hash-table or to have a
(make-hashx-table hash assoc [size]), and in either case to remember the hash
function so that resize works correctly.

Thanks,
Grem




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Monday 01/14/2008 at 22:40  Name: hash.test.patch  Size: 7kB   By:
gremio

<http://savannah.gnu.org/bugs/download.php?file_id=14801>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22022>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-12-07 16:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14 22:40 [bug #22022] hashx-set! and -ref Gregory Marton
2008-01-17 21:52 ` Neil Jerram
2008-01-17 21:54   ` Gregory Marton
2008-01-17 23:02     ` Neil Jerram
2008-01-18  0:25       ` Gregory Marton
2008-01-17 21:57   ` Neil Jerram
2008-01-17 22:01     ` Gregory Marton
2008-01-17 22:45     ` Neil Jerram
2008-01-18  0:22       ` Gregory Marton
2008-01-29 22:28       ` Neil Jerram
2008-12-07 16:51         ` Neil Jerram
2008-01-17 23:13 ` Neil Jerram
2008-01-18  0:30   ` Gregory Marton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).