Displaying 1 result from an estimated 1 matches for "getenclosingfunctionname".
2009 Dec 11
4
get the enclosing function name
Hi,
Is there a way to get the enclosing function name within a function?
For example, I would like to have a function getEnclosingFunctionName().
It works like below
f = function(){
print(getEnclosingFunctionName())
}
f() # will print "f"
Thanks
Jeff