.
D 2023-06-30T12:08:42.052
J closedate 2460126.00604227
J closer pointsman
J icomment After\sdiscussing\sand\sanalysing\sthis\sfurther\swith\sthe\ssupport\sof\sthe\r\nnice\sfellows\son\sthe\sTclers\schat\s(thanks\sfolks!)\sit\sturned\sout\sthat\r\nthis\sis\sa\scombination\sof\sa\scoding\spractice\swhich\sworked\sat\sthat\stime\r\nand\sfor\sthe\sTcl\sversion\saimed\sfor\sbut\sdoes\snot\sanymore\sdue\sto\sTcl\s9\r\nvariable\sresolution\schanges\swith\sanother\sTcl\s9\schange\s(TIP\s514).\r\n\r\nSo\sthis\sis\snot\sa\sbug\sof\sthe\sTcl\s9\scode\sbase\s(but\sa\slesson\sabout\son\r\nwhat\sscript\slevel\spatterns\sto\slook\sfor\swhile\sporting\sscript\scode\sto\r\nTcl\s9.)\r\n\r\nLet\sme\sexplain\sa\sbit\smore.\sTurned\sout\sthe\scrucial\scode\sis\sthis:\r\n[https://core.tcl-lang.org/tcllib/file?udc=1&ln=90-98&ci=tip&name=modules%2Fcrc%2Fcrc32.tcl]\r\n\r\nThat\scode\sis\sevaluated\sin\sa\snamespace.\sTherefor,\swith\sTcl\s<\s9\sthe\sline\r\n[https://core.tcl-lang.org/tcllib/file?udc=1&ln=90&ci=tip&name=modules%2Fcrc%2Fcrc32.tcl]\r\nresolved\sthe\s(unprefixed)\stcl_platform\sin\sthe\sglobal\snamespace.\sTcl\s9\r\ndoes\snot\sdo\sthat\sanymore.\r\n\r\nBecause\sof\sthis\sthe\scode\sbranch\r\n[https://core.tcl-lang.org/tcllib/file?udc=1&ln=93-97&ci=tip&name=modules%2Fcrc%2Fcrc32.tcl]\r\ngot\sevaluated.\sThen\sanother\sTcl\s9\schanges\scome\sinto\splay:\sTIP\s514,\r\nmaking\sthe\sint()\smath\sfunction\snot\sto\sdo\struncation\sany\smore.\sThat\r\nmeans\sthat\sthe\salgorithm\sat\sthat\splace\sdoes\snot\swork\sanymore\s(but\r\nruns\sinfinite\suntil\sthe\snumber\sget\sso\sbig\sthat\sit\sreaches\sother\r\nlimits).\r\n\r\nThe\scode\sruns\son\s8.7\sbecause\sthat\sstill\shas\sthe\s"resolve\sthe\svariable\r\nin\sthe\sglobal\snamespace\sif\sit\sdoesn't\sexists\sin\sthe\snamespace"\r\nbehaviour.
J login pointsman
J mimetype text/x-fossil-plain
J resolution Invalid
J status Closed
K 3b6b1c4e495f11ad9cf02230579359b72c8ccd73
U pointsman
Z 26d50ba5a1eda33e66154d323dbfa36a