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 <[EMAIL PROTECTED]> 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  -  [email protected]
> http://www.equi4.com/mailman/listinfo/metakit
> 


-- 
Sergey Khorev
http://iamphet.nm.ru
Can anybody think of a good tagline I can steal?
_____________________________________________
Metakit mailing list  -  [email protected]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to