Recipe for wrapping C++ files

Иван Трусков trus19 at gmail.com
Wed May 24 20:26:23 UTC 2017


Thanks!
However, it contains only examples of calling lisp from C.
Are there examples of calls going both ways? After some search I have found
about CFFI which may be just what I need. Are there examples for using CFFI
alongside ECL?

среда, 24 мая 2017 г. пользователь Daniel Kochmański написал:

> Hey,
>
> this tutorial may be useful to you:
>
> https://common-lisp.net/project/ecl/index.html#orgheadline10
>
> Best regards,
> Daniel
>
>
> Иван Трусков writes:
>
> > Hello
> > How can one bridge between C++ objects and CL? For example, given a class
> > to the lines of
> >
> > class A
> > {
> >     public:
> >         A(int q, int w);
> >         ~A();
> >         void foo(int q);
> >         int bar();
> > };
> >
> > that has its instances wrapped in smart pointers, how can that
> > functionality be made available from embedded Common Lisp?
> > Sorry if that's too general of a question. I am somewhat ignorant at the
> > moment, and would appreciate any tips as to where to dig to solve that
>
> --
> Daniel Kochmański ;; aka jackdaniel | Przemyśl, Poland
> TurtleWare - Daniel Kochmański      | www.turtleware.eu
>
> "Be the change that you wish to see in the world." - Mahatma Gandhi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20170524/0d4fa79c/attachment.html>


More information about the ecl-devel mailing list