hm, ok. this doesnt apply for c callbacks, though. i have (experimentally) 
increased CALL_MAX_ARGS to 10 (including the necessary switch extensions) in my 
neko checkout, which seems to work fine (but is ofcourse just as arbitrary a 
limit-- but one that happens to include a few OpenGL functions i want to bind).

what do you think about this? could we push CALL_MAX_ARGS to something that 
includes a little more of the edges of the gauss curve? the maximum i 
(currently) need is 9 (GLULookAt). i could send you a patch to save the typing, 
but i fear it might have other consequences (performance?).

or is there (holds thumbs) a cleaner way to bind a >5-argument C function to 
neko?

Yes, variable arguments function.

value myprim( value *args, int nargs ) {
   ...
}

DEFINE_PRIM_MULT(myprim);

Nicolas


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to