Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a42890243275b249d3298772382306c1ebd1ea8
Ticket: b198d6560a6174dcec95bde749cf450d1052d406
3-argument switch doesn't get bytecompiled
User & Date: anonymous on 2013-07-18 17:22:56
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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}}}
    
  5. foundin changed to: "91ed4186a8dd4deb14dd4fb8128c78c212ca26ef"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "ab5c04693d4ea3b3339a1e41947ceb8da8054625"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "47. Bytecode Compiler"
  15. title changed to: "3-argument switch doesn't get bytecompiled"
  16. type changed to: "Bug"