Skip to content
Tcl Source Code History Of Ticket 4bbb308ab2
Login

History Of Ticket 4bbb308ab2

Artifacts Associated With Ticket 4bbb308ab2

  1. Ticket change [b59dba9d46] (rid 162699) by pooryorick on 2018-04-28 13:42:26:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      When a pure list is passed as the <code>commandPrefix</code> argument, the
      string representation of that list is generated:
      
      	<code><verbatim>
      	proc p1 {list args} {
      		puts [list in . p1 [::tcl::unsupported::representation $list]]
      	}
      
      	set list [list one two three]
      	puts [list initial [::tcl::unsupported::representation $list]]
      	set var1 {}
      	trace add variable var1 read [list p1 $list]
      	set list [list p1 one two three]
      	set var1
      	</verbatim></code>
      
      Output:
      
      	<verbatim>
      	initial {value is a list with a refcount of 3, object pointer at 0x55f4052f7ad8, internal representation 0x55f4052db288:(nil), no string representation}
      	in . p1 {value is a pure string with a refcount of 3, object pointer at 0x55f4051a8aa8, string representation "one two three"}
      	</verbatim>
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "cb5bb6e27c11439b3d652a7ea7b921f6ea291750"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "pooryorick"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to:
      trace causes generates of string reprepresentatin of "commandPrefix" argument
      
    15. type initialized to: "Bug"
  2. Ticket change [0a3d4dd3a0] (rid 162700) by pooryorick on 2018-04-28 13:42:54:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. subsystem changed to: "18. Commands M-Z"
  3. Ticket change [0a08df80c7] (rid 162717) by sebres on 2018-04-30 10:54:02:

    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"
  4. Ticket change [456e458592] (rid 162730) by dgp on 2018-04-30 12:04:46:

    1. icomment:
      
      Likely related to 
      
      https://core.tcl-lang.org/tcl/tktview?name=3485833
      
      and the branch bug-3485833
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [381b28d9d3] (rid 162738) by dgp on 2018-04-30 12:19:21:

    1. icomment:
      
      Strictly speaking this is not a bug. String generation is a
      functionally valid thing Tcl or extensions may do.
      
      That said, it can be unwelcome, and any changes in the innards
      of [trace] that reduce the necessity of string generation seem
      like a good idea.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [634d9c3dc2] (rid 164086) by pooryorick on 2018-06-20 13:17:22:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. title changed to:
      trace generates of string reprepresentation of "commandPrefix" argument
      
  7. Ticket change [de06b65b40] (rid 164087) by pooryorick on 2018-06-20 13:17:51:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. title changed to:
      trace causes generation of string reprepresentation of "commandPrefix" argument
      
  8. Ticket change [8b2792f7c5] (rid 235257) by pooryorick on 2024-11-21 07:40:00:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. title changed to:
      trace causes generation of string representation of "commandPrefix" argument