Re: Recipe for wrapping C++ files

Иван Трусков <[email protected]>
Newsgroups gmane.lisp.ecl.general
Message-ID <CAEc-S=-k7pR557QnvDDuZwJ4=47kXp4tJe_T3T7ZDWO0Z_u6qA@mail.gmail.com>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.