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
Re: [tcltk-perl] Code for Tcl mainloop routines
by Jeff Hobbs other posts by this author
May 21 2005 1:35PM messages near this date
Re: [tcltk-perl] Code for Tcl mainloop routines | Re: [tcltk-perl] Code for Tcl mainloop routines
Stephane Chatty wrote:
> >In my opinion, this is perl/Tk's fault in a name clash.
>  
>  
>  Same opinion. But I have the vague feeling that the name clash is part
>  of the trick in perl-Tk: have Tk run over a fake Tcl library that relies
>  on Perl internals.

Yes, this is almost certainly the problem.  I actually put
some code in to handle this, but I see that I made it only
trigger in debug mode (in Tk.pm):

if (DEBUG()) {
     # The gestapo throws warnings whenever Perl/Tk modules are 
requested.
     # It also hijacks such requests and returns an empty module in its 

     # place. 

     unshift @INC, \&tk_gestapo;
}

You can see the def'n later in Tk.pm, but it basically hijacks
'use Tk' and related requests.  Since there is a naming issue,
we should probably reinstate this as a default, and change
from warning to error if we aren't fully hijacking and
replacing the content (which actually, I think we can do).

-- 
   Jeff Hobbs, The Tk Guy
   http://www.ActiveState.com/, a division of Sophos


-------------------------------------------------------
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_id=7412&alloc_id=16344&op=click
_______________________________________________
Tcltk-perl mailing list
Tcltk-perl@[...].net
https://lists.sourceforge.net/lists/listinfo/tcltk-perl
Thread:
Stephane Chatty
Jeff Hobbs

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