[Top][All Lists]

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

Re: [Chicken-users] Chicken C interface

From: Thomas Chust
Subject: Re: [Chicken-users] Chicken C interface
Date: Thu, 06 Jun 2013 12:29:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

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.
> [...]


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?


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

reply via email to

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