Command for inspecting the representation of a [Tcl_Obj] for debugging purposes. This command is not officially supported and the format of its output is deliberately chosen to be suitable for human use and not mechanical use. ''Do not base the behavior of any command on the results of this one; it does not conform to Tcl's value semantics!'' : '''[tcl::unsupported]::representation''' ''value'' ---- **Examples** [DKF]: Here are some examples of output. Note that the refcounts can be sometimes confusing; be aware that references to literals can be retained in the [history]. ====== % tcl::unsupported::representation 1 value is a int with a refcount of 8, object pointer at 0x32eb0, internal representation 0x1:0x0, string representation "1". % tcl::unsupported::representation 123 value is a pure string with a refcount of 3, object pointer at 0x34230, string representation "123". % tcl::unsupported::representation abc value is a pure string with a refcount of 3, object pointer at 0x32f40, string representation "abc". % set s abcdef abcdef % string length $s 6 % tcl::unsupported::representation $s value is a string with a refcount of 4, object pointer at 0x34338, internal representation 0x93c50:0x0, string representation "abcdef". % tcl::unsupported::representation [list 1 2 3] value is a list with a refcount of 1, object pointer at 0x34500, internal representation 0x8a050:0x0, no string representation. % tcl::unsupported::representation [dict create 1 2 3 4] value is a dict with a refcount of 1, object pointer at 0x97428, internal representation 0x92210:0x33960, no string representation. ====== <> Command|Internals