Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "msofer"
  2. 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.
    
  3. login: "dkf"
  4. mimetype: "text/html"
  5. priority changed to: "3 Low"
  6. username: "dkf"