[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #22022] hashx-set! and -ref
From: |
Gregory Marton |
Subject: |
[bug #22022] hashx-set! and -ref |
Date: |
Mon, 14 Jan 2008 22:40:06 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 |
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/
- [bug #22022] hashx-set! and -ref,
Gregory Marton <=
Re: [bug #22022] hashx-set! and -ref, Neil Jerram, 2008/01/17