guile-user
[Top][All Lists]
Advanced

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

Re: Passing lambda bindings to C for use as callback


From: Marius Vollmer
Subject: Re: Passing lambda bindings to C for use as callback
Date: 26 Nov 2002 13:10:48 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Marc Singer <address@hidden> writes:

> I found the answer by browsing an old CVS archive of the guile code.
> Turned out to be quite easy.

You can also pass the SCM objects that you want to protect globally to
the function scm_gc_protect_object.  Guile will then keep the data
structure for you.  You can unprotect such an object with
scm_gc_unprotect_object.  For objects that you wont ever unprotect you
can also use scm_permanent_object.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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