Artifacts Associated With Ticket 4bbb308ab2
Ticket change [b59dba9d46] (rid 162699) by pooryorick on 2018-04-28 13:42:26:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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> - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "cb5bb6e27c11439b3d652a7ea7b921f6ea291750"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
trace causes generates of string reprepresentatin of "commandPrefix" argument
- type initialized to: "Bug"
Ticket change [0a3d4dd3a0] (rid 162700) by pooryorick on 2018-04-28 13:42:54:
- login: "pooryorick"
- mimetype: "text/plain"
- subsystem changed to: "18. Commands M-Z"
Ticket change [0a08df80c7] (rid 162717) by sebres on 2018-04-30 10:54:02:
- 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. - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [456e458592] (rid 162730) by dgp on 2018-04-30 12:04:46:
- icomment:
Likely related to https://core.tcl-lang.org/tcl/tktview?name=3485833 and the branch bug-3485833
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [381b28d9d3] (rid 162738) by dgp on 2018-04-30 12:19:21:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [634d9c3dc2] (rid 164086) by pooryorick on 2018-06-20 13:17:22:
- login: "pooryorick"
- mimetype: "text/plain"
- title changed to:
trace generates of string reprepresentation of "commandPrefix" argument
Ticket change [de06b65b40] (rid 164087) by pooryorick on 2018-06-20 13:17:51:
- login: "pooryorick"
- mimetype: "text/plain"
- title changed to:
trace causes generation of string reprepresentation of "commandPrefix" argument
Ticket change [8b2792f7c5] (rid 235257) by pooryorick on 2024-11-21 07:40:00:
- login: "pooryorick"
- mimetype: "text/plain"
- title changed to:
trace causes generation of string representation of "commandPrefix" argument