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 florentis
1 days ago
tcl by torsten
4 days ago
tcl by Florentis
9 days ago
tcl by iobates
15 days ago
tcl by mookie
18 days ago
tcl by sebres
20 days ago
tcl by iobates
37 days ago
tcl by iobates
37 days ago
tcl by iobates
37 days ago
tcl by FLORENTIS
40 days ago
Submit
New paste
Documentation
From Jabber