ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcltk-perl
tcltk-perl
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved