Overview
| Artifact ID: | cd823a4c140ed6b68842b267722dc0da29aa788a |
|---|---|
| Ticket: | 820be4117d621f80b756074f0f784840451d0143
Pre-decision of substitution of the command arguments / {substitute inside} |
| User & Date: | sebres on 2014-05-21 10:29:47 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
I think, if by compiling a command we make possible to set a flag like TCL_SubstInside, that will be a great feature to minimize common overhead. There are many cases where we could use this feature. For example logging in middle level, something like: % log DEBUG $Cmd "execute statement: $statement, result: [res2str $res], ..." To this effect, if DEBUG level is off, the substitution is totally needless. Of course we could enclose it in braces (as below), and after verifying of level substitute in uplevel in log command: % log DEBUG {$Cmd "execute statement: $statement, result: [res2str $res], ..."} But, substitution in uplevel is not really good solution, imho, but at the moment only this solution is possible, to minimize overhead. The logik bellow is not really solution also, because is too long also and if later I will change algorithn to check log-level I should change many lines of code: % if {DEBUG ni $log::levels} {log DEBUG {$Cmd "..."}} - foundin changed to: ">= 8.5"
- is_private changed to: "0"
- login: "sebres"
- priority changed to: "5 Medium"
- private_contact changed to: "50e9528765c18296566374b3fde2df942c394efd"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "sebres"
- subsystem changed to: "47. Bytecode Compiler"
- title changed to:
Pre-decision of substitution of the command arguments / {substitute inside} - type changed to: "RFE"