Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a08df80c73300d2da5d7bb0e74e291137859bbd9232cd2dcf1882b68333235f
Ticket: 4bbb308ab26fe4aea344f1c0f744ccbef3f0543f
trace causes generation of string representation of "commandPrefix" argument
User & Date: sebres on 2018-04-30 10:54:02
Changes

  1. icomment:
    This going to concat by trace add (which currently does not differentiate between canonical and not-canonocal arguments):
    <code><verbatim>
    unset -nocomplain var1
    proc p1 {list args} {
      puts "in p1:\t\t[::tcl::unsupported::representation $list]"
    } 
    set list [list one two three]; set var1 {}
    puts "init:\t\t[::tcl::unsupported::representation $list]"
    trace add variable var1 read [list p1 $list]
    puts "trace added:\t[::tcl::unsupported::representation $list]"
    set var1
    </verbatim></code>
    Still worse is IMHO the duplication with resulting loss of real object type (it will be to pure string <b>inside the call of trace</b>).
    
    I found this several years ago and fixed already in my own branches.<br/>
    I'm sure I had already a ticket for this, but can not find it anymore.
    
    Anyway I'll push a branch next week (for >= 8.5) which closes it.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"