On 2013-06-06 12:19, Felix wrote:
> From: Thomas Chust <ch...@web.de>
>> [...]
>> 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?

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to