chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Chicken C interface


From: Felix
Subject: Re: [Chicken-users] Chicken C interface
Date: Thu, 06 Jun 2013 12:34:18 +0200 (CEST)

From: Thomas Chust <address@hidden>
Subject: Re: [Chicken-users] Chicken C interface
Date: Thu, 06 Jun 2013 12:29:01 +0200

> On 2013-06-06 12:19, Felix wrote:
>> From: Thomas Chust <address@hidden>
>>> [...]
>>> when I first saw that code I thought that this must be incorrect, too.
>>> Then I checked the CHICKEN documentation for foreign-safe-lambda and read:
>>>
>>>   "This is similar to foreign-lambda, but also allows the called
>>>    function to call Scheme functions and allocate Scheme data-objects."
>>>
>> 
>> The part about allocation is wrong, I'd say.
>> [...]
> 
> Hello,
> 
> thank you for the clarification :-)
> 
> So what about allocating locally and not returning an object but passing
> it to a Scheme callback from inside a foreign-safe-lambda? Is that ok or
> can it happen that the callback stores this object away but never copies
> it into the second generation heap?

That can indeed happen.


cheers,
felix



reply via email to

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