Am 12.02.22 um 10:02 schrieb Christian Gollwitzer:
Am 12.02.22 um 09:20 schrieb Roderick:
What is the internal representation of the components of
set L [list a [expr 1.0/3]]
?
Are they internally objects of different type?
C doubles (double precision floats). YOu can find this via tcl::unsupported::representation
Example:
(Sources) 49 % set L [list a [expr 1.0/3]] ; puts Hi
Hi
(Sources) 50 % ::tcl::unsupported::representation [lindex $L 0]
value is a pure string with a refcount of 4, object pointer at
0x7f9d984c62c0, string representation "a"
(Sources) 51 % ::tcl::unsupported::representation [lindex $L 1]
value is a double with a refcount of 3, object pointer at
0x7f9d984c6170, internal representation 0x3fd5555555555555:0x0, no
string representation
(Sources) 52 %
Christian
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)