Version 12 of platform

Updated 2012-09-26 10:23:59 by LkpPo

Definition: [L1 ]


Relevant in the context of tcl:


LV Also the name of a new Tcl 8.5 package. This package, included in the core distribution, contains functions such as:

  • ::platform::identify
  • ::platform::generic
  • ::platform::patterns

HE tried to use platform 1.0.2 with TCL/TK 8.4. It works (at least with 8.4.7 on win32-ix86)


Can someone provde an example of how platform is to be used? How should shared libraries be placed and named so that a single directory can contain extensions for multiple platforms safely? Is there any reason why the info sharedlibextension isn't also accessible from platform?

What I'd like to see is something like load [::platform::extension basename], where platform::extension constructs the "appropriate" (whatever that means) filename for the extension. This would mean defining some naming scheme for extensions, but something similiar is already done inside the extension. The Extensionname_Init function can't be arbitrarily named either.


JMN 2008-03-06 When running a linux version of tclkit on FreeBSD 6.x using its linux binary compatibility - ::platform::identify returns linux-glibc2.3-ix86

tcl_platform(os) contains "Linux"

Presumably in this situation - only pure tcl modules, or modules that are also linux binaries can be loaded. I guess it makes sense to think of it as a little linux virtual machine as far as Tcl is concerned?


See also: getWindowsAPIVendor.