I have been using SWIG to make a C library accessible from other languages. The problem I have encountered, is that I need the programmer in the ported languages to be able to override a function which will then be called by some of the functions in the native c code.
So user overrides method in X Language, and the native c code calls this function. What is the best way to go about doing this?
In particular I am looking to be able to do this for scheme.