GetFunctionCalledName()
Returns the name of variable used to call the current function
GetFunctionCalledName( );
Returns: String
This function does not take any arguments.
Examples
edit yell = function (name){
echo(name);
dump(var=getFunctionCalledName(), label="Function was called as");
};
yell("yell");
say = yell; // copy function
say("say from ");
yell = say; // copy function again
yell("yell from say");
See also
- Lucee Server related Tags, Functions and Guides
- GetBuiltInFunction()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)