[tcltk-perl] Code for Tcl mainloop routines
by Stephane Chatty other posts by this author
May 20 2005 3:40AM messages near this date
RE: [tcltk-perl] Code for Tcl mainloop routines
|
[tcltk-perl] Re: Access to Tcl main loop in Perl
My colleagues and I needed a good customisable mainloop that is usable from
both Perl and C, and we found that the Tcl mainloop serves our needs. But
perl-tcl did not provide access to the necessary functions.
Consequently, after talking with Vadim, I added a few routines to Tcl.xs, with
the corresponding documentation in Tcl.pm and a test named t/mainloop.t. The
routines provided are DoOneEvent, CreateChannelHandler, DeleteChannelHandler,
MakeFileHandler, CreateTimerHandler and DeleteTimerHandler.
From that point, I have a proposal and a question:
- the proposal: IntuiLab is willing to share that code under the same license
terms as perl-Tcl. I have prepared a patch based on Tcl-0.87 that I can send
upon request.
- the question: our next step was to integrate perl-Tk with that mainloop
(yes, I know. But our code relies on perl-Tk and we can't change that easily).
And we discovered that perl-Tk and Tcl *cannot* be used at the same time: they
implement functions with the same name that do different things. Consequently,
we have had to build our own versions of Tcl and perl-Tcl with all identifiers
changed :-( Any suggestion for a better solution? We are willing to share the
bridge code (implemented as a Tcl notifier), but in the present circumstances
it is pretty useless to anyone outside us.
Cheers,
Stéphane
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&opÌk
_______________________________________________
Tcltk-perl mailing list
Tcltk-perl@[...].net
https://lists.sourceforge.net/lists/listinfo/tcltk-perl
|