Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0f43c08e5a31d2b558fd476a884ac660eedd48ba
Ticket: 218498ffffffffffffffffffffffffffffffffff
incorrect variable evaluation of variable with value 0x100
User & Date: nobody on 2000-10-26 01:01:21
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    
  4. foundin changed to: "obsolete: 8.0.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to:
    incorrect variable evaluation of variable with value 0x100
    
  11. type changed to: "Bug"