[Ecls-list] Foreign variables setting problem

Juan Jose Garcia Ripoll lisp at arrakis.es
Mon Oct 24 02:19:43 UTC 2005


On Mon, 2005-10-24 at 09:06 +0200, Goffioul Michael wrote:
> I was trying to update the CFFI support for ECL and implemented the
> missing features using the recent changes in ECL regarding FFI and
> callbacks. Now, ECL can pass all CFFI tests except one: FOREIGN-GLOBALS.REF.STRING

Good news indeed!

> One solution could be to use plain malloc in si::allocate-foreign-data.
> Indeed, the user is expected to explicitely free the memory allocated,
> so it shouldn't be necessary to handle it through GC. However, there might
> be other side-effects I'm overlooking. Any suggestion?

There should be no side effects. However, to give the user more control
over what goes on, perhaps we should add an additional argument to
si::allocate-foreign-data, indicating whether the memory is
garbage-collectable or not.

Regards,

Juanjo





More information about the ecl-devel mailing list