Overview
| Artifact ID: | 6d1dba9df54af67f2465dfff9f216939c05927b4306867393103a61ed18bc224 |
|---|---|
| Ticket: | 934e6eb9cf15782433ffbc2f56cecdac30c596f5
ensemble unknown handler confused by tailcall |
| User & Date: | pooryorick on 2020-01-03 20:04:41 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed 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> - is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "21. [namespace]"
- title changed to: "ensemble unknown handler confused by tailcall"
- type changed to: "Bug"