[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #22022] hashx-set! and -ref
From: |
Neil Jerram |
Subject: |
[bug #22022] hashx-set! and -ref |
Date: |
Thu, 17 Jan 2008 21:52:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.13pre) Gecko/20070505 Iceape/1.0.9 (Debian-1.0.11~pre071022-0etch1) |
Follow-up Comment #1, bug #22022 (project guile):
I think I have a fix for the segfault, but now I'm seeing several other test
failures. Here's one...
(pass-if (let ((table (make-hash-table)))
(hashx-set! (lambda (k v) 1) assoc table 'foo 'bar)
(equal?
'bar (hashx-ref (lambda (k v) 1) assoc table 'baz))))
This one is wrong, isn't it? It sets an entry with key 'foo, then queries
the entry with key 'baz. So the result, correctly, is #f. What was your
intention here?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22022>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Re: [bug #22022] hashx-set! and -ref, Neil Jerram, 2008/01/17