Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f27b10839a731e443cd6d7a76583b502e53cc768
Ticket: 727563ffffffffffffffffffffffffffffffffff
bad mode default in switch compiled version
User & Date: beric on 2003-04-25 15:53:05
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Compiled switch uses -glob mode by default, whereas 
    doc and Tcl_SwitchObjCmd use -exact mode.
    
    ---
    
    proc test {} {
        # this one is compiled
        switch -- aa {
            a* {puts "glob"}
            aa {puts "exact"}
        }
        # not this
        switch aa {
            a* {puts "glob"}
            aa {puts "exact"}
        }
    }
    
    ---
    
    tclsh85 % test
    glob
    exact
    tclsh85 %
    
    
    See tclCompCmds.c 1.46, TclCompileSwitchCmd(), line 
    2905.
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "beric"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "bad mode default in switch compiled version"
  11. type changed to: "Bug"