|
2000-10-26
| ||
| 08:23 | • Closed ticket [218498ffff]: incorrect variable evaluation of variable with value... artifact: 089c0beda5 user: welch | |
| 01:01 | • New ticket [218498ffff]. artifact: 0f43c08e5a user: nobody | |
incorrect variable evaluation of variable with value 0x100
Closed / Fixed218498ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:21
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
welch Closed ticket [218498ffff].
[History diff]2000-10-26 08:23:18
Log in (anonymous is fine) to add a comment.