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
f031beec9a[3611643fff]: Support TclOO in autoload mechanism. check-in2013-08-03 15:27:40
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.