Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 83b72afc7d5281510ee751c2d09e54a87e4ddaed
Ticket: 229fa655638ab16d794ea819296cf9f3a9088619
tailcall inside apply inside namespace
User & Date: pooryorick on 2016-06-03 14:28:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In the following script, there are two identical <code>apply</code> commands.
    The one inside <code>namespace val n1 ...</code> succeeds, while the other one
    fails:
    
    <code><verbatim>
    namespace eval n1 {
        proc p2 {} {
            set name [lindex [info level 0] 0]
            set name [uplevel 1 [list ::namespace origin $name]]
        }
        puts [apply [list {} {tailcall p2} ::n1]]
    }
    
    puts [apply [list {} {tailcall p2} ::n1]]
    </verbatim></code>
    
    Error:
    
    <code><verbatim>
    invalid command name "p2"
        while executing
    "::namespace origin p2"
    ...
    </code></verbatim>
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a5d657bd6eb6e75747f01adab66e620d8b96868f"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "18. Commands M-Z"
  15. title changed to: "tailcall inside apply inside namespace"
  16. type changed to: "Bug"