From Newsgroup: comp.lang.tcl
* saito <
saitology9@gmail.com>
| tcl_platform(wordsize) doesn't seem to be reliable as it reports 4 in
| both cases.
https://www.tcl-lang.org/man/tcl/TclCmd/tclvars.html
tcl_platform(wordsize) is documented as the result of sizeof(long),
which is 4 only on Windows for both 32 and 64 bits.
On 64-bit Linux, tcl_platform(wordsize) is 8:
$ tclsh
% parray tcl_platform
tcl_platform(machine) = x86_64
tcl_platform(os) = Linux
tcl_platform(osVersion) = 6.12.107+deb13-amd64
tcl_platform(platform) = unix
tcl_platform(pointerSize) = 8
tcl_platform(wordSize) = 8
[...]
| tcl_platform(pointerSize) reports 4 and 8 for 32-/64-bits,
| respectively.
tcl_platform(pointerSize) is the result of sizeof(void*) (aka pointer
size), which is the closest you get (most likely '4' for 32-bit OSes and
'8' for 64-bit OSes).
The question would be why it matters to your code?
R'
--- Synchronet 3.22a-Linux NewsLink 1.2