[plt-scheme] 2 troubles with FFI

From: Eli Barzilay (eli at barzilay.org)
Date: Sun Apr 2 14:32:03 EDT 2006

On Mar 30, Ivan Boulanov wrote:
> Everything goes ok up to the last string where such an error message is 
> produced:
> "Scheme->C: expects argument of type <non-void-C-type>; given #<ctype>"
> I don`t understand what does MzScheme complains of.

The problem is that it does not allow a void return type for
callbacks.  This should be fixed at some point, but in the meanwhile
you can just return an integer that will be ignored.

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

Posted on the users mailing list.