Overview
| Artifact ID: | 4d95826e1693808d1ccaead16db6f0a20872fa2d |
|---|---|
| Ticket: | 820be4117d621f80b756074f0f784840451d0143
Pre-decision of substitution of the command arguments / {substitute inside} |
| User & Date: | sebres on 2014-08-06 19:10:20 |
Changes
- closedate changed to: "2456876.29885211"
- closer changed to: "sebres"
- icomment:
> log DEBUG $Cmd "execute statement $statement, result: [break]" > In that case, the semantics of log don't matter as the break will take precedence. @dkf: no really, cause this sould definitely substitute in current scope. What I meant would be: log DEBUG $Cmd {execute statement $statement, result: [break]} So it is equivalent inside of proc "log": # set msg {execute statement $statement, result: [break]} ... if {$lev > $Level ...} { set msg [uplevel [list if 1 [list subst $msg]]] } It is like this: set msg {puts [incr i]--test} set msg [uplevel [list if 1 [list subst $msg]]] @msofer: I can write the solution, that would be not so painful. - login: "sebres"
- mimetype: "text/plain"
- username: "sebres"