Purpose: to collect information regarding special tips, techniques, tricks, and got-chas in writing true cross platform Tcl scripts.
Page begun by Larry Virden.
See also Tcl built-ins for cross platform functionality.
Issues:
Other resources:
Here are some example Tcl applications that run on all of UNIX, Win, and MacOS and which are not merely trivial but demonstrate many of the problems/solutions of cross-platform portability.
Sometimes, even when a command itself isn't available in Tcl or Tk, it can be built rather easily. Hopefully the maintainer of tcllib and developers will continue to work together to gather things like fileutil and other pieces of code together into modules.
Please feel free to add anything you can. Hopefully some new tools could be added to the Tcl and Tk core to improve portability!
expr: The implementation of math functions may differ between platforms. In particular,
expr atan2(0,0) ;# Windows 2000: returns 0.0 ;# Solaris: domain error: argument not in valid range
So be sure to test atan2 calls for non-zero arguments.