Variable size/Get: Difference between revisions

→‎{{header|Tcl}}: note about this not being used much
(→‎{{header|Tcl}}: note about this not being used much)
Line 412:
<lang tcl>string bytelength $var</lang>
There is additional overhead per value and per variable, which depends on the architecture that Tcl was built for and the version of Tcl. In 8.5 on a ILP-32 architecture, local variables have an overhead of 8 bytes (without traces) and values have a minimum overhead of 24 bytes (this minimum is achieved for integers that fit in a signed 64-bit integer type or a double-precision float).
 
However, it is usual to not think in terms of the low-level size of a value; instead, concepts such as the length of the string (<code>string length</code>), list (<code>llength</code>) or dictionary (<code>dict size</code>) are used. <!-- Also, we plan to get rid of bytelength; it misleads people into doing really wrong things… -->
 
=={{header|Toka}}==
Anonymous user