guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weak hash tables are too strong?


From: Thien-Thi Nguyen
Subject: Re: Weak hash tables are too strong?
Date: Wed, 16 Jan 2002 04:58:46 -0800

   From: Neil Jerram <address@hidden>
   Date: 16 Jan 2002 07:20:49 +0000

   guile> (define b (make-doubly-weak-hash-table 7))

this works as you'd expect:

  (let ((b (make-doubly-weak-hash-table 7)))
    (hash-set! b 2 (vector 2 3 4))
    3
    b
    (gc)
    (gc)
    b)

however, if the first lone `b' is replaced w/ `(display b) (newline)'
you get the previous behavior.  hmmm.

thi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]