Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 874415a7ea2c453438c0bd8c76396d805b790d25
Ticket: da16fbe4a036aa7dae24585478682fdc6265d68c
Add comnand "info type" to Tcl language
User & Date: anonymous on 2015-04-16 01:28:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Add a command to know the internal representation of a Tcl Object: list, dict, string, ...
    
    It's possible to do this using: ::tcl::unsupported::representation
    
    But it's only for debugging purposes and it's human readable. 
    
    It would be nice a command like this "info type" that returns a concise string indicating the internal representation of a Tcl Object. 
    
    One application of this new command is to transform Tcl objects to json in a robust way (without using ::tcl::unsupported::representation) as explained in this URL: 
           http://stackoverflow.com/questions/7428032/determine-type-of-a-variable-in-tcl
    
    The source code of tcl2json is here:
              http://rosettacode.org/wiki/JSON#Tcl
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Add comnand "info type" to Tcl language"
  16. type changed to: "Bug"