This is not necessarily the current version of this TIP.
|Title:||Add the 'platform' Package to Tcl|
|Version:||$Revision: 1.5 $|
Steve Landers <steve at DigitalSmarties dot com>|
Andreas Kupries <andreask at ActiveState dot com>
Andreas Kupries <andreask at activestate dot com>
|Created:||Thursday, 26 October 2006|
|Keywords:||Tcl, Critcl, TEApot|
This TIP proposes adding the platform package to the Tcl core sources and to install it automatically, similar to what is currently done with the tcltest package.
It has been shown by the current users of the platform package - the Critcl (C Runtime in Tcl) and the TEApot repository system - that it is useful to not only be able to identify the architecture of a machine running Tcl, but to condense this information into a single identifier, standardized across platforms.
Whilst Tcl provides the tcl_platform array for identifying the current architecture (in particular, the platform and machine elements) this is not always sufficient. This is because (on Unix machines) tcl_platform reflects the values returned by the uname command and these aren't standardized across platforms and architectures. In addition, on at least one platform (AIX) the tcl_platform(machine) contains the CPU serial number.
Consequently, individual applications need to manipulate the values in tcl_platform (along with the output of system specific utilities) - which is both inconvenient for developers, and introduces the potential for inconsistencies in identifying architectures and in naming conventions.