Skip to content
Tcl Source Code Artifact [127b1ab3c2]
Login

Artifact [127b1ab3c2]

Artifact 127b1ab3c24d866f127f02408c0f41ecebc3de5b07cb03043f869125c2165ede:

Ticket change [127b1ab3c2] - Ticket [3a24cc9df1619a13|3a24cc9df1] <i>Switch statement case fails when using a open parenthesis in a comment</i> status still Open with 4 other changes by mookie on 2025-04-12 22:45:50.
D 2025-04-12T22:45:50.234
J comment Example\scode:\r\n\r\nproc\syay\s{lang}\s{\r\n\s\s\s\sswitch\s$lang\s{\s\r\n\s\s\s\s\s\s\s\stcl\s{\s\r\n\t\s\s\s\sputs\s"Yay!\sTCL"\r\n\s\s\s\s\s\s\s\s\s\s\s\s#\shaving\sthis\s{\swill\sbreak\sthis\scase\snow\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s}\r\n}\s;#\send\sproc\r\n\r\nI\sthen\shave\sto\sapply\san\sadditional\s{\sto\sthe\scode\swhich\sresults\sin\s\r\ninvalid\scommand\sname\s"}"\r\n\r\n}\r\n%\syay_lang\s"tcl"\r\nYay!\sTCL\r\ninvalid\scommand\sname\s"}"\r\n\r\nNot\ssure\sfeature,\sor\sbug,\sso\sfeel\sfree\sto\sclose,\sbut\ssurely\sa\scomment\sis\sa\scomment\sand\sshouldn't\sbe\sexecuted?\sI\srecall\scorrectly\sit's\sdown\sto\sthat\sswitch\scases\sare\sexecuted\sas\slists.\sBut\ssomething\sfeels\seery\sthat\syou\scan't\suse\sa\s{\sin\sa\scomment.
J login mookie
J mimetype text/plain
J title Switch\sstatement\scase\sfails\swhen\susing\sa\sopen\sparenthesis\sin\sa\scomment
K 3a24cc9df1619a130120e8cef8560aef0561c1f0
U mookie
Z f744a15a550c1fd348d554a14344b155