Overview
| Artifact ID: | c53d1f289a367313b3d8253c64448e83254ea53c |
|---|---|
| Ticket: | 820be4117d621f80b756074f0f784840451d0143
Pre-decision of substitution of the command arguments / {substitute inside} |
| User & Date: | dkf on 2014-05-21 18:12:00 |
Changes
- assignee changed to: "msofer"
- icomment:
That makes it astoundingly hard to get the semantics right. For example, suppose you did: <pre> log DEBUG $Cmd "execute statement $statement, result: [break]" </pre> In that case, the semantics of <tt>log</tt> don't matter as the <tt>break</tt> will take precedence. <p> <i>Because of this complexity, I'd be inclined to reject this RFE.</i> Leaving to Miguel to take the final decision. <hr> Other logging frameworks in languages like Java have equivalent problems, and solve them by allowing probing of the log level. We could also take the message argument and do <tt>uplevel 1 subst</tt> on it if we're going to do the logging, allowing it to be quoted with <tt>{</tt>braces<tt>}</tt>, but that also doesn't require changes to Tcl's parse/compile semantics. - login: "dkf"
- mimetype: "text/html"
- priority changed to: "3 Low"
- username: "dkf"