Skip to content
Tcl Source Code History Of Ticket da16fbe4a036aa7d
Login

History Of Ticket da16fbe4a036aa7d

Artifacts Associated With Ticket da16fbe4a036aa7d

  1. Ticket change [874415a7ea] (rid 141552) by anonymous on 2015-04-16 01:28:44:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized 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 initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "Add comnand "info type" to Tcl language"
    16. type initialized to: "Bug"
  2. Ticket change [4f94952a55] (rid 141557) by msofer on 2015-04-16 16:05:57:

    1. closedate changed to: "2457129.17079977"
    2. closer changed to: "msofer"
    3. icomment:
      Please see Donald Fellows' reply on StackOverflow.
      
      The internal representation of a value has absolutely no meaning in Tcl. The command [representation] is only to be used for debugging or performance analysis purposes.
      
      This RFE is somewhat akin to someone asking to "add pointers to javascript": event though JS objects may reside at a specific address in memory, the address itself makes zero sense in JS. As the system could conceivably move the object around, a program that depends on the address is essentially buggy even if it happens to work in some circumstances.
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
    8. type changed to: "RFE"