Skip to content
Tcl Source Code Artifact [3734b1de20]
Login

Artifact [3734b1de20]

Artifact 3734b1de2054f2a8d6f5efc96b8fba4f00e493f7:

Ticket change [3734b1de20] - New ticket [218627ffffffffff|218627ffff] <i>tcl8.0.4 puts misbehaves in context of expr</i>. by nobody on 2000-10-26 01:03:19.
D 2000-10-26T01:03:19
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1508\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-15'\nLastModified:\s'1999-08-07'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1999-08-07'\nFixedInVersion:\s8.0.5\nClosedDate:\s'2000-10-25'\n\n\nNewsgroups:\scomp.lang.tcl\nFrom:\[email protected]\s(Robert\sR.\sHenry)\nSubject:\stcl8.0.4\sputs\smisbehaves\sin\scontext\sof\sexpr\nDate:\sThu,\s4\sMar\s1999\s22:43:23\sGMT\nXref:\snews3.best.com\scomp.lang.tcl:93456\n\n\nWhen\susing\stcl8.0.4,\sbuilt\sin\sa\svanilla\sfashion\sfor\seither\ssunos\sor\ssolaris,\nthe\sfollowing\sprocedure\sexecutes\sin\sa\smanner\sI\sfind\spathological:\n\n\s\sproc\sx\s{}\s{\n\s\s\s\sputs\s"0x7"\n\s\s\s\sputs\s"0x3"\n\s\s\s\sexpr\s\s7\n\s\s\s\sexpr\s\s0x3\n\s\s\s\sreturn\n\s\s}\n\nThe\sfirst\sputs\soutputs\s3\scharacters\s(here\sindented\sfor\sclarity):\n\s\s0x7\nthe\ssecond\sputs\soutputs\sONLY\s1\scharacter\n\s\s3\n\nIf\sI\scomment\sout\sthe\sline\sthat\sevaluates\sthe\sexpr\sinvolving\s0x3,\nthen\sboth\sputs\soutput\s3\scharacters,\s0x7\sand\sthen\s0x3.\n\nIf\sI\schange\sthe\squotes\sfrom\s""\sin\sthe\sputs\sstatements\sto\s{},\nthen\sI\sstill\sget\sthe\sSAME\sbehaviour.\s{}\sare\sbeing\svolated!\n\nIf\sI\shad\sto\shazard\sa\sguess,\sthe\sbyte\scode\scompiler\sconstructs\sa\ssingle\ninternal\snormalized\srepresentation\sof\sthe\svalue\s3\s(or\s0x3),\swhich\sit\sthen\nuses\sin\sboth\sthe\sputs\sand\sin\sthe\sexpr.\n\nneedless\sto\ssay\sthis\sbehaviour\sis\squite\sunexpected,\sespecially\sfor\sthe\s{}\nquoting\scase,\sand\sit\sis\salso\sdifferent\sthan\stcl7.4\n\nRobert\sR.\sHenry\[email protected]\n\n\n\nThis\soveraggressive\scompiler\sbehavior\swas\sfixed\sin\s8.0.5\sand\nthe\s8.1+\sversions.\s\n--\s08/07/1999\shobbs
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 62.\s(unused)
J title tcl8.0.4\sputs\smisbehaves\sin\scontext\sof\sexpr
J type Bug
K 218627ffffffffffffffffffffffffffffffffff
U nobody
Z 6e3e2c840445a8b42373a457fe5d1b8f