Skip to content
Tcl Source Code Artifact [cb7723a824]
Login

Artifact [cb7723a824]

Artifact cb7723a824beb250283540c1d7752fe9c9bf240b:

Ticket change [cb7723a824] - Ticket [447296ffffffffff|447296ffff] <i>commented if statement are evaluated</i> status still Open with 6 other changes by msofer on 2001-08-03 04:48:39.
D 2001-08-03T04:48:39
J assignee msofer
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nYou\sare\snot\sactually\scommenting\sthe\sifelse\sclause.\s\n\nWhat\sis\shappening\shere\sis\sthat\sthe\sparser\ssees\n\s\sif\sexpr1\sbody1\selseif\sexpr2\sbody2\selse\sbody3\nwith\sscripts\s<body1>\sand\s<body2>\sdefined\sas:\n\s\s*\sbody1\s->\s\\n\s<action1>\s\s\\n\s#\s\n\s\s*\sbody2\s->\s\\n\s#\s<action2>\s\\n\n\nThe\s'}'\safter\sthe\sfirst\s'#'\srepresents\sthe\send\sof\sthe\sscript\n<body1>;\scommenting\sends\sright\sthere.\n\nI'm\shesitant\sto\scall\sthis\sa\s"bug",\sas\sopposed\sto\sa\n"mis-documented\sfeature".\sThe\sdocs\ssay\s\s(rule\s[9]):\n"If\sa\shash\scharacter\s(``#'')\sappears\sat\sa\spoint\swhere\sTcl\sis\nexpecting\sthe\sfirst\scharacter\sof\sthe\sfirst\sword\sof\sa\ncommand,\sthen\sthe\shash\scharacter\sand\sthe\scharacters\sthat\nfollow\sit,\sup\sthrough\sthe\snext\snewline,\sare\streated\sas\sa\ncomment\sand\signored."\n\nMaybe\sthe\sdocs\sshould\sbe\smore\sexplicit\sand\ssay\sinstead:\n"\s...,\sup\sthrough\sthe\snext\snewline\sor\send-of-script\n(whichever\scomes\sfirst),\s..."\nor\ssomething\sto\sthat\seffect.\sHowever,\sthis\sparticular\ndescription\slooks\seven\smore\sconfusing\sto\sme.\n
J login msofer
J mimetype text/plain
J subsystem 45.\sParsing\sand\sEval
J username msofer
K 447296ffffffffffffffffffffffffffffffffff
U msofer
Z ad41d885159b39d930ed13a2b3d26239