From: Thomas Chust <[email protected]> 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 <[email protected]> >>> [...] >>> 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 _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
