On 11/22/06, Brad Watson <address@hidden> wrote:
Does anyone have an idea on how a callback function mapped to a class
and selector could be created dynamically ? Lots of libraries that
Ive examined have functions defined within them that require a
callback function as one of the parameters. It would be useful to be
able define the callback function in smalltalk and then pass an
address that maps it's way back to it.. Possible ?
Checkout ffcall and libffi . Both offer the facility to build runtime
trampolines. IIRC, CLISP uses ffcall.