[plt-scheme] Re: scheme_weak_reference and MZ_PRECISE_GC

From: David Hansen (david.hansen at gmx.net)
Date: Tue Sep 9 13:09:54 EDT 2008

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?


Posted on the users mailing list.