Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 281389ca99de68f49c5fd9b34b420fdfa1c799ef
Ticket: 1251791fffffffffffffffffffffffffffffffff
optimisation reveals integer/wide problems
User & Date: msofer on 2005-08-04 11:45:08
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The optimisation that preserves a Tcl_Obj when
    appending an empty string only happens for bytecoded
    scripts. Combined with integer/wide difficulties, this
    produces inconsistent results when the same script is
    bcc'ed or not.
    
    mig@ave:/home/CVS/tcl-core-8-4-branch/unix$ cat > /tmp/test
    proc test {} {
        set res [info patchlevel]
        set a [expr {wide(65536)}]
        lappend res [expr {$a*$a}]
        set b $a[set a ""]
        lappend res [expr {$b*$b}]
    }
    puts [test]
    
    set res [info patchlevel]
    set a [expr {wide(65536)}]
    lappend res [expr {$a*$a}]
    set b $a[set a ""]
    puts [lappend res [expr {$b*$b}]]
    
    mig@ave:/home/CVS/tcl-core-8-4-branch/unix$ ./tclsh
    /tmp/test
    8.4.11 4294967296 4294967296
    8.4.11 4294967296 0
    
    
    
  4. foundin changed to: "obsolete: 8.4.11"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "optimisation reveals integer/wide problems"
  11. type changed to: "Bug"