[plt-scheme] Callbacks returning void

From: Henk Boom (lunarc.lists at gmail.com)
Date: Thu Jan 29 01:44:08 EST 2009

I see that something like this has been asked once before [1], but
there didn't seem to be an answer so I'll ask it. I've bound a
function as follows:

(dSpaceCollide _dSpaceID _pointer (_fun _pointer _dGeomID _dGeomID ->
_void) -> _void)

When I pass it a scheme function as the third argument, I get the
following error message when it (the callback) returns:

Scheme->C: expects argument of type <non-void-C-type>; given #<ctype>

Is this supposed to work?

    Henk

[1] http://www.cs.brown.edu/pipermail/plt-scheme/2007-July/019775.html


Posted on the users mailing list.