Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 90ca389b2f2bd277d897f09b203a0fba2b8abe0d
Ticket: 218042ffffffffffffffffffffffffffffffffff
braces required on expression in while statements - not docu
User & Date: nobody on 2000-10-26 00:52:30
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1364 Bug
    Version: 8.0.4
    SubmitDate: '1999-03-02'
    LastModified: '1999-08-07'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: Solaris
    OSVersion: 2.6
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '1999-08-07'
    
    
    Name:
    Raj
    
    Extensions:
    many
    
    ReproducibleScript:
     The code
    
      while [doSomething] {
          ...
      }
    
     used to work with tcl8.0, where the proc "doSomething" gets evaluated prior to every iteration. For some reason, it needs braces around the expression in
    tcl8.0.4. I found it the hard way after one of my programs ran into an infinite loop. I don't know where the extra round of substitution crept into ver 8.0.4.  Also, no information regarding this effect is mentioned in any of the release documentation. 
    
    DesiredBehavior:
    proper documentation of changes. 
    
    
    
    The fact that it was not required in earlier 8.0 releases was the
    bug.  According to the rules of substitution, the above becoming
    an infinite loop is the stated behavior.  It would be eval'ed only
    once (let's say to true), and then that is cached for later iterations.
    Placing the {}s around the conditional are required to make sure it
    will be evaluated at every iteration. 
    -- 08/07/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    braces required on expression in while statements - not docu
    
  11. type changed to: "Bug"