Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 383c16ddb220fbd73ef6be915e77e78a75548b6c
Ticket: 729692ffffffffffffffffffffffffffffffffff
redef of bcc'ed commands inoperant in current bcode
User & Date: rmax on 2003-04-29 16:27:44
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following piece of code doesn't work as expected
    due to the empty proc body optimization that went into
    Tcl 8.4.
    
    proc bar args {}
    proc main {} {
        proc bar args {puts "this is bar"}
        bar
    }
    main
    
    While this example is artificial, I stumbled over this
    bug in a situation where a (formerly empty) proc got
    redefined through by
     namespace import -force
    and invoked immediately afterwards, all within the same
    arm of a switch statement. So it took me some time (and
    the help of fellow Tcl'ers on the chat) to find out
    what's going on.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "rmax"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "empty body optimization does too much"
  11. type changed to: "Bug"