Hallo,
On 06/01/16 15:06, Adam wrote:
I don't see any clear way this can be done with Scheme structures, so simply passing a C structure as result value that has accessors, per the example in my previous email, seems like the best thing. That one has the issue that it requires a malloc()/free() combo which is a bit unfortunate.
Oh well, I guess that's life. I guess I will return a signed 64-bit int and test against -1. Not ranting against Gambit, but this makes one appreciate more the brilliance of the Lua C API.
Cheers,
-alex http://unendli.ch/