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 evilotto
23 hours ago
tcl by evilotto
1 days ago
tcl by colin
3 days ago
tcl by colin
4 days ago
tcl by colin
4 days ago
tcl by colin
4 days ago
tcl by egavilan
7 days ago
tcl by Bradipo
9 days ago
tcl by miguel
11 days ago
tcl by kbk
13 days ago
Submit
New paste
Documentation
From Jabber