[plt-scheme] Re: scheme_weak_reference and MZ_PRECISE_GC
On Tue, 9 Sep 2008 10:22:18 -0600 Matthew Flatt wrote:
> At Tue, 09 Sep 2008 17:59:42 +0200, David Hansen wrote:
>> I want a mapping
>>
>> <some C pointer from another lib> -> <Scheme_Object* that wraps around
>> the C pointer + some possible other data>.
>
> That's simply a hash table from integers (representing C pointers) to
> Scheme objects.
>
> If that's it, there's no need for anything like weak references. Is
> there more to the problem?
Well, sometimes it's that easy :) Thank you very much. Last question
for now: How do I store weak values? Using a weak box?
David