Overview
| Artifact ID: | 281389ca99de68f49c5fd9b34b420fdfa1c799ef |
|---|---|
| Ticket: | 1251791fffffffffffffffffffffffffffffffff
optimisation reveals integer/wide problems |
| User & Date: | msofer on 2005-08-04 11:45:08 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.4.11"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "optimisation reveals integer/wide problems"
- type changed to: "Bug"