Skip to content
Prev 12367 / 398502 Next

too many arguments in foreign function call

Duncan Murdoch <murdoch at stats.uwo.ca> writes:
That's a coincidence, highly dependent on other languages abiding the
C calling conventions (and arguably, .External is really interfacing
to a Scheme-like runtime system rather than general C code...)

It's like Brian says: If you can figure out how to call the other
language from C, then it really shouldn't be any trouble to setup a
wrapper using either of the interfaces .C, .Call, and .External. And
given that you usually need "onionskin" routines to convert pointer
arguments for call-by-value usage, the extra work of zipping a bunch
of scalar arguments out of a vector does seem rather minute.