Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: b7e6d7f5eaf08166239103820d6cbee889504d2c
Ticket: cafef7c5856ec8b1cbc0ea13c6c41d96d9982d75
Unexplained code in StringRplcCmd function (tclCmdMZ.c)
User & Date: anonymous 2015-03-27 06:22:48
Changes

  1. icomment:
    I deleted the second group of two sentences in the Tcl interpreter:
         ustring = Tcl_GetUnicodeFromObj(objv[1], &length);
         length--;
    
    I compiled and the test proposed by dkf works:
        set start end-2
        string replace $start $start end
    
    It returns "en". The same value returned by the interpreter without any modification to its code.
    
    Also the condition:
          objv[1]== objv[2] || objv[1] == objv[3]
    doesn't happens inside the function StringRplcCmd() in this test.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"