[Metakit] Help with wrapping a C++ method
Sergey Khorev
sergey.khorev at gmail.com
Fri Aug 5 21:19:41 CEST 2005
I guess CL's FFI is pointer-oriented? Chicken interface uses the
simple trick: each wrapper returns heap-allocated copy. E.g. "new
c4_RowRef(GetAt(i))".
On 8/2/05, Joel Reymont <joelr1 at gmail.com> wrote:
> Folks,
>
> I'm trying to put C wrappers around the MetaKit C++ API to be able to
> use it with Common Lisp. I can't figure out how to wrap things like
> this:
>
> c4_RowRef GetAt(int) const;
>
> where a copy of the object is returned as opposed to a pointer. Any
> suggestions?
>
> Thanks, Joel
>
> --
> http://wagerlabs.com/uptick
>
>
>
> _____________________________________________
> Metakit mailing list - Metakit at equi4.com
> http://www.equi4.com/mailman/listinfo/metakit
>
--
Sergey Khorev
http://iamphet.nm.ru
Can anybody think of a good tagline I can steal?
More information about the Metakit
mailing list