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

From: Sam Phillips (samdphillips at gmail.com)
Date: Thu Sep 25 18:02:46 EDT 2008

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.  Here's the output I get on
Linux with PLT4.1

$ mzscheme my-lib.ss
a is #<my-type>
directly using ptr: 42
s->c got #<my-type>
s->c returning #<cpointer:my-type-ptr>
Scheme->C: expects argument of type <pointer>; given #<my-type>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: my-lib.tar.gz
Type: application/x-gzip
Size: 859 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20080925/2e11dfad/attachment.gz>

Posted on the users mailing list.