Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: be1a192f33a3ab2773f7885e512adea0596eef76
Ticket: 477c24cb39e3c502dec0329583256072211ea4d3
rename ::set and lose custom return options
User & Date: dgp on 2016-09-01 17:31:00
Changes

  1. icomment:
    
    Here's another demo, that I find more focused:
    
    proc p1 {} {return -custom1 1 1}
    proc p2 {b} {
        if {$b} {
            catch {set status [p1]} m o
        } else {
            set set set
            catch {$set status [p1]} m o
        }
        return $o
    }
    puts [p2 0]
    puts [p2 1]
    
    Demonstrates a clear difference in bytecode
    execution compared to non-bytecode script evaluation.
    They ought to be the same and they are not, so yes
    there's a bug.
    
    This leads to an unsettling debate over which
    is correct.  How long should a return
    option survive when return code is TCL_OK ?
    
  2. login: "dgp"
  3. mimetype: "text/plain"