
Duncan Coutts wrote:
Manuel may well have some comments on the issues you've brought up but he's often quite busy so you may like to start discussing/hacking the least controversial bits.
And so I did. Attached is a path that defers the error about variadic functions a bit. This was surprisingly simple, it basically worked on the first try. Now I can write get hooks for the "methods" in libdb, and if I manually write lots of foreign import dynamic declarations, I call call them. The next step is to generate them. I think, the easiest way is to extend the call and fun hooks to accept cids of the form struct->method, which would then create a dynamic import and act like a combination of get and call hooks. Libdb always passes the struct itself as the first argument to the method. This seems to be a fairly common convention. Do you think it deserves special support? Udo. -- <xinkeT> "Lord grant me the serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to hide the bodies of the people I had to kill because they pissed me off."