Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 646cf9084acdce0f2b378d2cfff36ddb71bab5e3
Ticket: 1584674fffffffffffffffffffffffffffffffff
where has the syntax error detection gone
User & Date: msofer on 2008-01-12 20:46:25
Changes

  1. closedate changed to: "2008-01-12T13:46:25"
  2. closer changed to: "msofer"
  3. icomment:
    Logged In: YES 
    user_id=148712
    Originator: NO
    
    This is per design. Tcl's has string interpretation semantics, the bytecompiler has to respect that. Tcl8.5 has fixed a number of bugs in that area.
    
    If we checked for syntax errors you couldn't run the following "perfectly valid" code. Tcl8.4 will return an error, which is a bug.
    
    proc foo bar {
        if {$bar == 0} {
            set a [badcall c
        } else {
            set a $bar
        }
    }
    foo 1 ;# returns 1
    proc if args {return $args}
    foo 0
    
    Not arguing that you would *want* to run code like that, only that a string interpretation language will run it.
    
    
  4. login: "msofer"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "msofer"