-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 17.08.2007 um 22:56 schrieb Robin Lee Powell:

Hi,

On Fri, Aug 17, 2007 at 10:34:46PM +0200, Bastian Müller wrote:

Finally, I tried to do the actual call.
First, I tried:
  (ode-space-collide space (null-pointer) foobar)
and during the simulation I got an
  Error: bad argument count - received -2 but expected 3: error in
error
  graphics.scm: 76   ode-space-collide    <--

So you'll want #f instead of (null-pointer), and you'll want
(location foobar), and foobar needs to be define-external *in the
file you set the callback from*.

The "bad argument count" thing is exactly what happens when you
don't use (location func) for setting up a callback; it happened to
me a bunch whilst making cluck.

so, I put the define-external in graphics.scm, where I do now:
 (ode-space-collide space #f (location foobar))

and throws again:

Error: (location) bad argument type - locative can not refer to objects of this type: #<procedure (foobar data81 geom182 geom283)>

I'm using chicken 2.6, btw.

Thanks for your quick response

- --
Bastian Müller - http://turbolent.com/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGxhHIUFTPKTPeTPURAiy7AJ0Y/n9dv4q8PSKwFZraUDCT35GFZACffFrV
G5wn2XXBJ4GYwT1OVWo2rvM=
=AqCu
-----END PGP SIGNATURE-----


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to