Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 735b164fc19ec53130c5f9778426ba0172f05532
Ticket: 1854399fffffffffffffffffffffffffffffffff
compiled [switch -regexp --] is broken
User & Date: dgp on 2007-12-19 20:35:47
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % proc try {} {
    switch -regex -- 0 {
    {[0-9]+} {return true}
    default {return false}
    }
    }
    % try
    false
    % proc try2 {} {
    set switch switch
    $switch -regexp -- 0 {
    {[0-9]+} {return true}
    default {return false}
    }
    }
    % try2
    true
    % proc try3 {} {
    switch -regexp 0 {
    {[0-9]+} {return true}
    default {return false}
    }
    }
    % try3
    true
    
    This breaks the struct
    package in tcllib pretty bad.
    
    
  4. foundin changed to: "obsolete: 8.5.0"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "compiled [switch -regexp --] is broken "
  12. type changed to: "Bug"