Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72b3680d07c5de56f5393167de4e64a221dde05f
Ticket: 1893052fffffffffffffffffffffffffffffffff
Object type info can be lost after comparison (e.g. INST_EQ)
User & Date: nobody on 2008-02-13 20:02:31
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    set a ...
    set b ...
    if {$a == $b} {
        ...
    }
    
    Regardless of the actual types of objects a and b,
    numerical comparison is coerced by Tcl engine if at
    all possible, which includes the case when string
    representations of both objects look like numbers.
    Both arguments are then converted to numeric types
    (e.g. via Tcl_GetWideIntFromObj), and the original
    object type information is irretrievably lost. This
    is a problem when custom type of an object cannot
    be restored from its string representation.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to:
    Object type info can be lost after comparison (e.g. INST_EQ)
    
  12. type changed to: "Bug"