Relevant in the context of tcl:
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.
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?
WHD Is there a list somewhere of what OS string platform::generic is likely to return for different platforms? I can see "macosx" on my own platform, and I can guess "linux" from the above comment. What does it return on Windows? "win32"? How about other flavors of Unix?
MG For me on Windws 7 64-bit, it returns "win32-x86_64".
WHD Per Andreas Kupries: For the ActiveState machines we get the following "full" identifiers:
See also: getWindowsAPIVendor.