| Ticket UUID: | 3611643 | ||
| Title: | auto_mkindex_parser for tcloo | ||
| Type: | Patch | Created on: | 2013-04-23 09:58:55 |
| Submitter: | tombert | Assigned to: | dkf |
| Subsystem: | 35. TclOO Package | Severity: | Important |
| Priority: | 5 Medium | Last modified: | 2013-09-08 10:24:26 |
| Status: | Closed | Closed by: | dkf |
| Resolution: | Fixed | Closed on: | 2013-09-08 10:24:26 |
| Version: | None | ||
| Description: | ||||
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"
}
}
| ||||
| User Comments: | ||||
jan.nijtmans added on 2013-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 dkf added on 2013-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. | ||||
