[plt-scheme] Callbacks returning void
At Thu, 29 Jan 2009 01:44:08 -0500, Henk Boom wrote:
> 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?
Which version are you using? If I understand your example, this works
in 4.1.4, but it didn't work in 4.1.3.
Matthew