Artifacts Associated With Ticket da16fbe4a036aa7d
Ticket change [874415a7ea] (rid 141552) by anonymous on 2015-04-16 01:28:44:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "Add comnand "info type" to Tcl language"
- type initialized to: "Bug"
Ticket change [4f94952a55] (rid 141557) by msofer on 2015-04-16 16:05:57:
- closedate changed to: "2457129.17079977"
- closer changed to: "msofer"
- 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.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- type changed to: "RFE"