|
2013-07-18
| ||
| 17:22 | • New ticket [b198d6560a] 3-argument switch doesn't get bytecompiled. artifact: 7a42890243 user: anonymous | |
3-argument switch doesn't get bytecompiled
Openb198d6560a6174dcec95bde749cf450d1052d406Created 13 years agoUpdated 13 years ago
Descriptionplain2013-07-18 17:22:56
The 3-argument form of switch does not get bytecompiled, despite the suggestion in the source code that it does. See
http://core.tcl.tk/tcl/artifact/3805ec834a6f0d7bb27d13f893242acb82229c36?ln=1031,1033
These result in a jump table:
::tcl::unsupported::disassemble script {switch $a {foo - bar - baz {set a 1}}}
::tcl::unsupported::disassemble script {switch -exact -- $a {foo - bar - baz {set a 1}}}
But this does not
::tcl::unsupported::disassemble script {switch -exact $a {foo - bar - baz {set a 1}}}
Log in (anonymous is fine) to add a comment.