[gambit-list] FFI and scheme-object

Alex Queiroz asandroq at gmail.com
Tue Apr 5 09:10:56 EDT 2011


Hallo,

On Tue, Apr 5, 2011 at 10:06 AM, Diogo F. S. Ramos <diogofsr at gmail.com> wrote:
>
> I mean, whenever I create a scheme object that I want to return to C
> code, but I don't want to make a conversion to a C type like a struct
> because I only access its values using accessors, should I call
> (##still-copy) when returning it?
>

     If you don't immediately copy the object to the C side and
instead want to keep a pointer to the Scheme heap, you will need
##STILL-COPY. But I guess you don't want to do that: What if the
object is garbage-collected?

-- 
-alex
http://www.artisancoder.com/



More information about the Gambit-list mailing list