Skip to content
Tcl Source Code Artifact [6dfb01141a]
Login

Artifact [6dfb01141a]

Artifact 6dfb01141a095c0f46dc9fa1ceaf5ca730b265b6:

Ticket change [6dfb01141a] - New ticket [1836519fffffffff|1836519fff] <i>Make two-arg switch safe and fast</i>. by pspjuth on 2007-11-22 15:21:07.
D 2007-11-22T15:21:07
J assignee dkf
J cmimetype text/plain
J comment When\sswitch\sgets\stwo\sarguments\sthey\scannot\nlegally\sbe\soptions,\syet\sthey\sare\sscanned\nfor\soptions\sleading\sto\sthat\sthe\ssimple\sway\nof\scoding:\nswitch\s$a\s{\n\s\sxx\syy\n}\nis\snot\sas\ssafe\sas\sone\swould\shope\swhen\s$a\nhappens\sto\sbegin\swith\s"-".\n\nNot\sparsing\sfor\soptions\swhere\sthey\scannot\nlegally\sbe\sare\scommon\sin\sTcl\scommands,\se.g.\nlsort\sand\slsearch\sdoes\sthis.\n\nThis\spatch\smakes\sthe\smost\sstraightforward\nswitch\susage\salso\sbe\sthe\ssafest\sand\sfastest.\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter pspjuth
J subsystem 18.\sCommands\sM-Z
J title Make\stwo-arg\sswitch\ssafe\sand\sfast
J type Patch
K 1836519fffffffffffffffffffffffffffffffff
U pspjuth
Z 6d30f393c5b003b4a47f41f6f60a4f41