tailcall does not trigger an [namespace unknown] handler
Openf7afd3dbef3c3a8e73687a76f8009ee19729544cCreated 7 years agoUpdated 7 years ago
Descriptionwiki2019-12-24 20:56:07
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]]
Log in (anonymous is fine) to add a comment.