[Ecls-list] embedding: question regarding data structures?

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Fri Nov 13 16:18:04 UTC 2009


On Fri, Nov 13, 2009 at 5:02 PM, Rui Maciel <rui.maciel at gmail.com> wrote:
> is it better to define the data
> structure through a set of common lisp scripts and then let the C code rely on
> calls to ECL to access the data?

I would say you should not constrain yourself w.r.t to data
structures: use whatever is best for your lisp programs. If you want
you can compile lisp functions, such as structure slot readers or your
own custom writing functions, to have a C name that gets exported, and
use them _directly_ from C, if you really need to (it is a
declaration, but I do not remember it right now).

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list