Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f492a60b8ec05cca63136da8cd32d2a8f558391e
Ticket: 86fb5ea28e5bf689e7924b1de9a1e9aa9454a292
Ensembles and [info frame] lines
User & Date: dgp on 2013-07-10 17:28:12
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    $ cat dgp.tcl
    proc foo {} {
        dict for {a b} {c d} {*}{
            {set res [info frame 0]}
        }
        return $res
    }
    puts "Should be 3: [dict get [foo] line]"
    $ make shell SCRIPT=dgp.tcl
    ...
    Should be 3: 2
    
    Replace the "dict for" with direct call to
    "tcl::dict::for" and it works properly.
    
    Problem is that the word number of arguments
    is different whether or not we call through the
    ensemble.  So SetLineInformation(3) isn't correct.
    
    Still puzzling where best to account for this.
    
  5. foundin changed to: "8.5+"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "21. [namespace]"
  14. title changed to: "Ensembles and [info frame] lines"
  15. type changed to: "Bug"