[plt-scheme] FFI: problem with define-cpointer-type

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Sep 27 02:37:10 EDT 2008

On Sep 25, Sam Phillips wrote:
> On Thu, Sep 25, 2008 at 12:42 PM, Sam Phillips <samdphillips at gmail.com> wrote:
> > I'm trying to come up with a more concrete simple test (that could
> > actually just be run), that should expose the behavior.  Just need to find
> > a simple libc func to use...
> 
> Ok attached is a more concrete test.  It's some simple C code and
> some ffi bindings that shows what I'm seeing.  [...]

Thanks -- that does seem like a bug, which I fixed in svn.

[The thing is that supplying translation functions to a cpointer type
is questionable, which is why it wasn't used so far.  In your case, I
think that using a plain ctype definition can make things simpler.]

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.