[Top][All Lists]

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

Re: C calling Scheme and garbage collection

From: Hans Åberg
Subject: Re: C calling Scheme and garbage collection
Date: Sun, 30 Jun 2019 14:51:52 +0200

> On 27 Jun 2019, at 21:52, Greg Troxel <address@hidden> wrote:
> I have been down this path before, with guile and with lua.  Basically,
> if C (or non-scheme) has a pointer to a scheme object, then you need to
> hold a logical reference for it and protect the scheme object, and when
> the C pointer is dropped decrease the refcnt.
> I am unclear on the details of how you have a ref that gc is made aware
> of.

If one allocates with the underlying Boehm GC, is the SCM object kept alive?

reply via email to

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