#7 tcl defined callbacks

open
nobody
None
5
2012-12-21
2002-03-14
Vic Bancroft
No

SWIG doesn't know how to map a scripting language
function into a C callback. (from
SWIG-1.3.11/Doc/Manual/SWIG.html).

It would be nice to allow tclsh programmers to define
tcl functions in the normal way, register them as
callback functions (given that the typemaps match), and
have them invoked as event handlers from the loaded
shared library.

Discussion

  • Ed Suominen
    Ed Suominen
    2002-09-05

    Logged In: YES
    user_id=302938

    I would like to see this also, to create a macro extension
    that fires a TCL callback on a keyboard or mouse hook.

    One way to implement this might be to pass the C code a
    pointer to the TCL proc, which I think is possible. (?)