|
2010-09-29
| ||
| 02:46 | • Closed ticket [2980235fff]: command pollution in interps w/o package require... artifact: 2a3cecf85c user: vasiljevic | |
| 02:46 | • Ticket [2980235fff]: 4 changes artifact: 84a09ed1e0 user: vasiljevic | |
| 02:20 | • Ticket [2980235fff]: 4 changes artifact: 55a356d650 user: andreas_kupries | |
| 02:19 | • Ticket [2980235fff]: 4 changes artifact: 663ba1c3ce user: vasiljevic | |
|
2010-08-31
| ||
| 22:55 | • Ticket [2980235fff]: 4 changes artifact: 7c414ffaf8 user: dgp | |
|
2010-04-01
| ||
| 04:03 | • Ticket [2980235fff]: 4 changes artifact: a7b4bd72a4 user: vasiljevic | |
|
2010-03-31
| ||
| 20:50 | • New ticket [2980235fff]. artifact: c42007a101 user: dgp | |
command pollution in interps w/o package require
Closed / Fixed2980235fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 16 years ago
Descriptionplain2010-03-31 20:50:30
The pkgIndex.tcl file for the Thread and Ttrace packages creates the commands [::thread_load] and [::thread_source] inside every interp that happens to run [::tclPkgUnknown], whether or not that interp ever actually does a [package require] on Thread or Ttrace. This is unwelcome pollution. Bad by any measure. Doubly bad in the global namespace. This is very easy to fix with the use of the [::apply] command, so long as a dependence on Tcl 8.5 is permissible. If there is movement to better separate the two packages (see message on TCLCORE), then the index script may change enough as a result of that to make the issue go away.
vasiljevicplain2010-04-01 04:03:50
I would separate the two and this would make the package loading trivial. No problem with that.
dgpplain2010-08-31 22:55:03
A partial remedy has been committed (thanks aku!) using [::apply] when it is available to avoid the pollution. Still would like to see the Thread and Ttrace packages disentangled, but getting Thread bundled with Tcl is more important than that.
vasiljevicplain2010-09-29 02:19:00
Somebody already added this in the pkgIndex.tcl.in in HEAD (wasn't me). Was it yourself? Can I close this one?
andreas_kupriesplain2010-09-29 02:20:41
That was I.
vasiljevicplain2010-09-29 02:46:04
Aha! Well then I will close this one as all is already taken care of.
vasiljevicplain2010-09-29 02:46:05
allow_comments - 1
Log in (anonymous is fine) to add a comment.