.
D 2000-12-06T22:45:02
J icomment I'd\srather\sbuild\sMIN_INT\sand\sMAX_INT\swith\sbit\sshift\sand\snegation\smyself,\sbut\scouldn't\sfind\sa\sconvenient\sway\sto\sdo\sit.\n\n(\s1\s<<\s31\s)\sfor\sMIN_INT\smight\swork,\sexcept\sthat\sit\smesses\sup\sthe\s64-bit\sport.\n\n(\s-1\s>>\s1\s)\smight\sdefine\sMAX_INT,\sexcept\sthat\s>>\sis\san\sarithmetic\sright-shift\sand\ssign\sextends\sthe\sdamned\sthing:\s\n\s\s\s\s(\s-1\s>>\s1\s)\s==\s-1\s!\n\n(I\sprobably\sought\sto\swork\sup\sa\sTIP\sfor\san\sunsigned\sshift-right\soperator,\sperhaps\s'>>>'.)\n\nThe\srules\sfor\ssetting\sup\stests\shave\snever\sbeen\sclear\sto\sme.\s\sMost\sof\sthe\sother\sTcl\stests\sare\sentirely\sself-contained;\sin\svery,\svery\sfew\splaces\sis\sthere\scode\sin\sthe\sbody\sof\sthe\sfile,\sexcept\sfor\scleaning\sup\safter\sfailed\stests.\s\sIf\syou'd\srather\shoist\sthe\scode\sout,\sand\syou\sunderstand\sthe\simplications,\sby\sall\smeans\sgo\sahead.\n\n
J login kennykb
J mimetype text/plain
J username kennykb
K 402663ffffffffffffffffffffffffffffffffff
U kennykb
Z eb5b4396d9784397f46d3cfec745f8e7