Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3d7b9b3aef0ac326a1cb51df2dca32fd19885e17
Ticket: 3588512fffffffffffffffffffffffffffffffff
expr { ( ! true ) == false }
User & Date: heinrichmartin on 2012-11-19 15:13:07
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OS: Debian Squeeze
    
    Promblem: expr is not consistent with boolean values and operators, i.e. [expr { ( ! true ) == false }] yields 0
    
    Expected: "not true" is logically the same as "false" - expr should know that.
    
    A few notes:
    * tested in tclsh 8.5
    * found no bugs for "expr" in current and developement
    * a fix could break existing code (that's why I put it in group developement)
    * workaround: always use bool() or !! for explicit conversion, i.e. [expr { ( ! true ) == bool ( false ) }] yields 1
    
  4. foundin changed to: "current: 8.6.0"
  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: "heinrichmartin"
  10. subsystem changed to: "None"
  11. title changed to: "expr { ( ! true ) == false }"
  12. type changed to: "Bug"