[gambit-list] Incrementing reference to a Scheme object

Vijay Mathew vijay.the.lisper at gmail.com
Thu Oct 31 08:08:03 EDT 2013


What is the right way to prevent a Scheme object referenced by a C object
from being garbage collected?

For example, I have a structure:

struct Callback {
      ___SCMOBJ cbfn;
};

where `cbfn' is a procedure defined in Scheme. I want it to be garbage
collected only after the Callback object itself is destroyed.

Thanks,

--Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20131031/5b465a9b/attachment.htm>


More information about the Gambit-list mailing list