[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] FFI c++ issue

From: felix winkelmann
Subject: Re: [Chicken-users] FFI c++ issue
Date: Mon, 3 Jan 2005 11:33:39 +0100

On Mon, 3 Jan 2005 09:36:38 +0000, Joel Reymont <address@hidden> wrote:
> > felix winkelmann wrote:
> >Since the ffi is not able to box the foo (which would result in
> >copying, and other things which may result in subtle C++
> >problems), I recommend to let bar return a pointer to foo.
> >The ffi parser does currently not support code like above.
> foo& foo:bar() does work. How would I box/unbox a reference? Define a
> reference type and the same code as for a pointer?

The reference is internally handled as a pointer. It's just for convenience
to allow references. Just use it like a pointer.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]