Artifacts Associated With Ticket 218498
Ticket change [0f43c08e5a] (rid 94758) by nobody on 2000-10-26 01:01:21:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 722 Bug Version: 8.0.3 SubmitDate: '1998-10-13' LastModified: '1999-08-06' Severity: SER Status: Released Submitter: admin ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '1999-08-06' FixedInVersion: 8.0.4 ClosedDate: '2000-10-25' ReproducibleScript: The following script: puts "Tcl: version: $tcl_version, patch=$tcl_patchLevel" set addr 0x100 puts "addr $addr" exit if {1 < 0x100} {} When I run it on a FreeBSD tcl7.6 system it prints the expected hex value: Tcl: version: 7.6, patch=7.6p2 addr 0x100 When I run it on a FreeBSD tcl8.0 system, addr is no longer in hex: Tcl: version: 8.0, patch=8.0p2 addr 256 When I run it on a NT4.0 tcl8.0.3 system, addr is no longer in hex: Tcl: version: 8.0, patch=8.0.3 addr 256 If I change "0x100" in the if statement to some other value, addr prints in hex. I.e. the value of "addr" in the initial set command and the value in the if command must be the same to cause this unexpected change to addr. Same problem if the "if" statement is changed to a "for" statement . ObservedBehavior: Expands $addr to 256. DesiredBehavior: Should expand $addr to 0x100 . Comments: I posted this to comp.lang.tcl with the subject "tcl8.0.3 unexpected evaluation" a couple of days ago. This was due to overaggressive object type determination and has been fixed since 8.0.4. -- 08/06/1999 hobbs - foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "10. Objects"
- title initialized to:
incorrect variable evaluation of variable with value 0x100
- type initialized to: "Bug"
Ticket change [089c0beda5] (rid 89598) by welch on 2000-10-26 08:23:18:
- closedate changed to: "2000-10-26T01:23:18"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"