[Top][All Lists]

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

Re: Weak hash tables are too strong?

From: Neil Jerram
Subject: Re: Weak hash tables are too strong?
Date: 16 Jan 2002 20:28:25 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Michael" == Michael Livshin <address@hidden> writes:

    Michael> Thien-Thi Nguyen <address@hidden> writes:
    >> 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.

    Michael> my (admittedly vague) recollection of the problem is that
    Michael> recently-printed things tend to stick in memory.  you
    Michael> print more stuff, they go away.

OK, thanks for the quick answers.  In the actual application I won't
be printing the items that I want to be collected, so the table should
work as expected.


reply via email to

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