No, you are incorrect.
caller() doesn't return which 'function' calls you - it returns the package name, the file name and the line number of the caller; which is in the first three arguments. All the other arguments have to do how you are called. So, caller(0)[3] returns how you were called as.
If you want to find out which function called you (if there is such a function), you call caller(1), which gives you information how your caller is called.
In reply to Re^5: caller() mystery
by JavaFan
in thread caller() mystery
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |