Skip to content
Tcl Source Code Artifact [ca6e0f12c7]
Login

Artifact [ca6e0f12c7]

Artifact ca6e0f12c703ad548038498c6194902275d5a2ca:

Ticket change [ca6e0f12c7] - New ticket [221240ffffffffff|221240ffff] <i>infinite loop - behaviour change from 8.0p2</i>. by tjamesjones on 2000-11-03 17:18:06.
D 2000-11-03T17:18:06
J assignee nobody
J cmimetype text/plain
J comment \n[\scouldn't\sfind\sthis\sin\sthe\sbug\sdatabase.\n\ssurprisingly,\sthis\s"bug"\sis\salso\sin\sv8.0.5\s\sso\sit\n\shas\sbeen\saround\sfor\sa\swhile]\n\nwe\sare\strying\sto\supgrade\sour\sversion\sof\sTcl\sfrom\sv8.0p2.\nhave\sdiscovered\san\sodd\sbehaviour\sfor\sthis\sTcl\scode:\n\n#\n#\sSTART\sCODE\n#\n\nset\sfoo\s0\n\nwhile\s$foo\s{\n\s\s\s\s\s\s\s\sputs\s"first\sloop"\n}\n\nset\sfoo\s1\n\nwhile\s{\s$foo\s!=\s0\s}\s{\n\s\s\s\s\s\s\s\sset\sfoo\s0\n\s\s\s\s\s\s\s\sputs\s"second\sloop"\n\n}\n\nset\sfoo\s1\n\nwhile\s$foo\s{\n\s\s\s\s\s\s\s\sset\sfoo\s0\n\s\s\s\s\s\s\s\sputs\s"third\sloop"\n}\n\n#\n#\sEND\sCODE\n#\n\nyou\scan\srun\sit\sfrom\stclsh\s-\sthe\scode\sgets\sstuck\sin\san\sinfinite\sloop\son\sthe\sthird\sloop.\ndoesn't\slook\sright\sto\sme,\syet\sI\scan't\sbelieve\snoone\selse\shas\snoticed\sthis?\s\s\s\n\nthis\sbroke\ssome\sof\sour\scode,\sas\sthe\sbehaviour\sunder\sv8.0p2\swas\smore\sas\syou'd\sexpect,\sbreaking\sout\sof\sthe\sthird\sloop\safter\sone\siteration.\n\nmaybe\sTcl\shas\schanged\sso\sthat\syou\scan't\ssay\s"while\s$var"\salthough\sthat\sdoesn't\sreally\sexplain\swhy\sit\sworks\sfor\sthe\sfirst\sof\sthe\sthree\sloops.\n\n\n\n
J foundin obsolete:\s8.3.2
J priority 5\sMedium
J resolution None
J status Open
J submitter tjamesjones
J subsystem 07.\sVariables
J title infinite\sloop\s-\sbehaviour\schange\sfrom\s8.0p2
J type Bug
K 221240ffffffffffffffffffffffffffffffffff
U tjamesjones
Z 9dedf37d3407e4bd18199d778b7b4588