Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b59dba9d46b912c6d151db54e687844870e4b046dc8773297c98bc5938591d1b
Ticket: 4bbb308ab26fe4aea344f1c0f744ccbef3f0543f
trace causes generation of string representation of "commandPrefix" argument
User & Date: pooryorick on 2018-04-28 13:42:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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 changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "cb5bb6e27c11439b3d652a7ea7b921f6ea291750"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "pooryorick"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    trace causes generates of string reprepresentatin of "commandPrefix" argument
    
  15. type changed to: "Bug"