Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3f214dfb0b98f36b5b6c561742af59e5ec67d1bc
Ticket: 3107983fffffffffffffffffffffffffffffffff
Glitch in the constant expression optimization.
User & Date: avl42 on 2010-11-12 15:32:45
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
       % proc tcl::mathfunc::foo x { puts "foo:>>>$x<<<"; return $x }
       % set x 1; expr {foo($x?" 0x42 ":" 0x41" )}
       foo:>>> 0x42 <<<
       66
       % expr {foo(1?" 0x42 ":" 0x41" )}
       foo:>>>66<<<
       66
       % 
    
    If the condition is a constant, then the result of the "?:" operator is numericalized even if it gets passed to an external function.
    
  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: "avl42"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "Glitch in the constant expression optimization."
  12. type changed to: "Bug"