unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#33827: SRFI 69 weak hash-tables is broken
@ 2018-12-21 11:13 Jéssica Milaré
  2018-12-22 17:44 ` bug#33827: Attempt to fix Jéssica Milaré
  2018-12-23 17:09 ` bug#33827: Patch Jéssica Milaré
  0 siblings, 2 replies; 5+ messages in thread
From: Jéssica Milaré @ 2018-12-21 11:13 UTC (permalink / raw)
  To: 33827

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

The srfi-69 implementation that comes with Guile doesn't function properly
when some non-false #:weak argument is provided. The problems seems to be
that it tries to use handles, which are only available for non-weak
hash-tables.

scheme@(guile-user)> (import (srfi :69))
scheme@(guile-user)> (define ht (make-hash-table eq? hashq #:weak 'key))
scheme@(guile-user)> (hash-table-set! ht 10 10)
ERROR: In procedure hashx-create-handle!:
In procedure scm_hash_fn_create_handle_x: Wrong type argument in position 1
(expecting hash-table): #<weak-table 0/31>

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]>


Regards,
Jessica

[-- Attachment #2: Type: text/html, Size: 1740 bytes --]

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

end of thread, other threads:[~2019-01-13 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21 11:13 bug#33827: SRFI 69 weak hash-tables is broken Jéssica Milaré
2018-12-22 17:44 ` bug#33827: Attempt to fix Jéssica Milaré
2018-12-23 17:09 ` bug#33827: Patch Jéssica Milaré
2019-01-09  0:21   ` bug#33827: Patches Jéssica Milaré
2019-01-13 22:53     ` Jéssica Milaré

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).