[Ecls-list] Tighter c/c++ integration, toplevel inline c/c++ code ???

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Mon May 3 16:33:38 UTC 2010


On Mon, May 3, 2010 at 6:03 PM, Matthew Mondor <mm_lists at pulsar-zone.net>wrote:

> On Mon, 03 May 2010 06:57:29 -0500
> Seth Burleigh <seth at tewebs.com> wrote:
>
> > Woops, i even typed in incorrect code, but the idea is correct. Also, if
> > it were possible to do this, it would also have to be possible to call
> > the lisp functions by creating something which maps the lisp function
> > calls in the c/c++ code to the obfuscated names.
>
> Note that the obfuscated C symbols generated from Lisp code does not
> prevent C code from invoking them; i.e. it's possible to use from C
> code: cl_object obj = funcall(nargs, @functionsymbol, ...);


Be careful because Seth stated that he does not want to call the C functions
that are used for lisp. He wants to call functions that take as arguments
ordinary C types (structures, pointers, integers, etc) and which
automatically convert the arguments of these functions to lisp, that acting
as proxy for the real lisp functions. That is the definition of a callback.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://tream.dreamhosters.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100503/393258fe/attachment.html>


More information about the ecl-devel mailing list