Getting the FQN of a caller command
Posted to
tcl
by kostix at Fri Dec 01 19:20:29 GMT 2006
view raw
proc
get_caller {{level 1}} {
if
{[
info
level] < 3} {
return
{}
}
else
{
incr
level
uplevel
$level
{
namespace
which -command [
lindex
[
info
level 0] 0]}
}
}
Recent Posts
tcl by oldlaptop
1 days ago
tcl by Julian Noble
7 days ago
tcl by oldlaptop
30 days ago
tcl by dandyn
35 days ago
tcl by oldlaptop
38 days ago
tcl by apn
40 days ago
tcl by rmax
43 days ago
tcl by kevin_walzer
46 days ago
tcl by Bradipo
61 days ago
tcl by Stu
83 days ago
Submit
New paste
Documentation
From Jabber