[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weak hash tables are too strong?
From: |
Michael Livshin |
Subject: |
Re: Weak hash tables are too strong? |
Date: |
16 Jan 2002 16:18:13 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft) |
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.
my (admittedly vague) recollection of the problem is that
recently-printed things tend to stick in memory. you print more
stuff, they go away.
--
Indentation?! -- I will show you how to indent when I indent your
skull!
-- Klingon Programmer