Ticket UUID: | f7afd3dbef3c3a8e73687a76f8009ee19729544c | |||
Title: | tailcall does not trigger an [namespace unknown] handler | |||
Type: | Bug | Version: | ||
Submitter: | pooryorick | Created on: | 2019-12-24 20:56:07 | |
Subsystem: | 60. NRE and coroutines | Assigned To: | nobody | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Open | Last Modified: | 2019-12-24 20:56:07 | |
Resolution: | None | Closed By: | nobody | |
Closed on: | ||||
Description: |
(text/x-fossil-wiki)
The following script illustrates that tailcall does not trigger a handler set using <code>namespace unknown</code>. <code><verbatim> namespace eval ns1 { proc u1 args { return hello } namespace unknown u1 } # this triggers the unknown handler puts [namespace eval ns1 nosuchroutine] # this does not puts [apply [list {} { tailcall nosuchroutine } ns1]] </verbatim></code> |