The conservative nature of the GC makes this nigh impossible. 

See https://rubygems.org/gems/weakhash for details. It would be nice.

Asher

On Oct 15, 2010, at 7:21 PM, Santiago Pastorino wrote:

> Hi guys,
> 
>  I'm wondering why Ruby doesn't provide a WeakHash implementation. Do
> you think could be a nice thing to add?.
> 
> Best.
>