Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-09-08
10:24 • Closed ticket [3611643fff]: auto_mkindex_parser for tcloo plus 7 other chang... artifact: 0dbb8b32a8 user: dkf
10:21
[3611643] Stop polluting the global namespace. Refactor the index entry generation so it is done rig... check-in: c45d777d3c user: dkf tags: trunk
2013-09-06
21:41 • Open ticket [3611643fff]: auto_mkindex_parser for tcloo plus 6 other changes artifact: af64ed8e4a user: jan.nijtmans
2013-08-03
15:28 • Closed ticket [3611643fff]. artifact: f8d281ba47 user: dkf
15:27
[3611643fff]: Support TclOO in autoload mechanism. check-in: f031beec9a user: dkf tags: trunk
2013-04-23
09:58 • New ticket [3611643fff] auto_mkindex_parser for tcloo. artifact: 19cb13ecab user: tombert

auto_mkindex_parser for tcloo

Closed / Fixed3611643fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 13 years ago
Descriptionplain2013-04-23 09:58:55
auto.tcl misses support for tcloo, the code below simply adds the class name:

foreach cmd {oo::class class} {
    auto_mkindex_parser::command $cmd {ecmd name body} {
variable index
variable scriptFile
append index "set [list auto_index([fullname $name])]"
append index " \[list source \[file join \$dir [list $scriptFile]\]\]\n"
    }
}
Referenced by1
dkf Closed ticket [3611643fff]. [History diff]2013-08-03 15:28:11
jan.nijtmansplain2013-09-06 21:41:30
Re-opening, because the solution causes a problem
in fossil. Demonstrating the problem can be done
in tcl8.6 only:

$ tclsh8.6
% set cmd abc
abc
% package require Tk
8.6.0
% set cmd
class

??? Why did the value of $cmd change?

The "package create Tk" activates the auto mechanism,
which overwrites the variable $cmd
dkfhtml2013-09-08 10:24:26

Removed the global variable use (duh!) and built an improved version with the index entry generation refactored out so that it's done right in one place rather than many times over.

Log in (anonymous is fine) to add a comment.