Tcl Source Code

View Ticket
Login
Ticket UUID: f7afd3dbef3c3a8e73687a76f8009ee19729544c
Title: tailcall does not trigger an [namespace unknown] handler
Type: Bug Created on: 2019-12-24 20:56:07
Submitter: pooryorick Assigned to: nobody
Subsystem: 60. NRE and coroutines Severity: Minor
Priority: 5 Medium Last modified: 2019-12-24 20:56:07
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:

The following script illustrates that tailcall does not trigger a handler set using namespace unknown.

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]]