unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <INVALID.NOREPLY@gnu.org>
To: Neil Jerram <neil@ossau.uklinux.net>,
	Gregory Marton <gremio@mit.edu>,
	bug-guile@gnu.org
Subject: [bug #22022] hashx-set! and -ref
Date: Thu, 17 Jan 2008 21:52:18 +0000	[thread overview]
Message-ID: <20080117-215218.sv185.60269@savannah.gnu.org> (raw)
In-Reply-To: <20080114-224004.sv59778.71865@savannah.gnu.org>


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/





  reply	other threads:[~2008-01-17 21:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 22:40 [bug #22022] hashx-set! and -ref Gregory Marton
2008-01-17 21:52 ` Neil Jerram [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080117-215218.sv185.60269@savannah.gnu.org \
    --to=invalid.noreply@gnu.org \
    --cc=bug-guile@gnu.org \
    --cc=gremio@mit.edu \
    --cc=neil@ossau.uklinux.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).