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] Re: Access to Tcl main loop in Perl
by Vadim other posts by this author
Apr 23 2005 7:35AM messages near this date
[tcltk-perl] Code for Tcl mainloop routines | [tcltk-perl] Tcl/Tk 2005 First Call for papers
>  my question is purely about Tcl and not about Tk, that's why I'm writing to 
>  you directly instead of using the tcltk list.

Still, writing to tcltk developers list is good idea, and may be asking
your question on pure-tcl lists will also be good.

>  In our project we need a main loop and we have found that the Tcl main loop 
>  is fine for us. However, whereas calling all the main loop routines 
>  (Tcl_DoOneEvent, Tcl_CreateChannelHandler and the likes) is easy in C++, it 
>  demands a special library in Perl.

...

>  However, to my understanding the module just provides access to 
>  Tcl_DoOneEvent, and not to the other main loop functions. Can you confirm 
>  that? Is there any particular reason for that?

Probably other functions were not required earlier. Adding other
function to Tcl.xs is possible.

In most cases, when required library function is accessible from Tcl,
you can do $int-> Eval("Tcl code to access").

>   Do you have ideas in mind 
>  about how to access the main loop?

I have no deep knowledge of Tcl internals, but if you follow Tcl
documentation closely, things should work perfectly.

>   I am asking because I have started making 
>  additions to Tcl.xs for that, and I'd like to make sure that it is a good 
>  approach before going further.

Any additions that improve code are welcomed! Share your ideas in more
details, and probably other developers will help. 


Best regards,
Vadim.





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Tcltk-perl mailing list
Tcltk-perl@[...].net
https://lists.sourceforge.net/lists/listinfo/tcltk-perl

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved