Skip to content
Tcl Source Code History Of Ticket 934e6eb9cf157824
Login

History Of Ticket 934e6eb9cf157824

Artifacts Associated With Ticket 934e6eb9cf157824

  1. Ticket change [6d1dba9df5] (rid 178220) by pooryorick on 2020-01-03 20:04:41:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      <code>tailcall</code> confuses the unknown handler of a namespace ensemble.  The following
      script,
      
      <code><verbatim>
      namespace eval ns1 {
          proc dispatch {routine args} {
              return list
          }
          namespace ensemble create -unknown [
          list ::apply [list {ensemble routine args} {
              tailcall dispatch $routine {*}$args
          } [namespace current]]]
      }
      
      puts [ns1 x one two three]
      </verbatim></code>
      
      results in the error:
      
      <verbatim>
      unknown subcommand "x": namespace ::ns1 does not export any commands
      </verbatim>
      
      However, if the word "tailcall" is removed, then the result is as expected:
      
      
      <verbatim>
      one two three
      </verbatim>
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Minor"
    10. status initialized to: "Open"
    11. submitter initialized to: "pooryorick"
    12. subsystem initialized to: "21. [namespace]"
    13. title initialized to: "ensemble unknown handler confused by tailcall"
    14. type initialized to: "Bug"
  2. Ticket change [d5322ce955] (rid 194939) by pooryorick on 2021-06-21 06:47:43:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. severity changed to: "Important"