Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d2ba4d232dd942c4227689f807de61f0e2eb4f0d
Ticket: 1584674fffffffffffffffffffffffffffffffff
where has the syntax error detection gone
User & Date: pcmacdon on 2006-10-25 19:09:51
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I was trying out 8.5a5 thinking that it's new compiled
    switch feature would improve Tcl's detection of syntax
    errors in switch arms, but instead found not only 
    is it unchanged, but that the basic error detection of
    "if" is now gone.  For example the following script
    causes 8.3 and 8.4 to barf, but is perfectly legal
    in 8.5:
    
      proc bar var {
        if {$var == "acorn"} {
          set a b c
        }
      }
      bar a
    
    Ditto for 
    
      proc bar var {
        if {$var == "acorn"} {
          set a [b c
        }
      }
    
    
    The "no errors til you execute it" policy means
    you need nearly perfect code coverage testing
    to use Tcl with any confidence.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "pcmacdon"
  10. subsystem changed to: "None"
  11. title changed to: "where has the syntax error detection gone"
  12. type changed to: "Bug"