GetFunctionCalledName()
Returns the name of variable used to call the current function
GetFunctionCalledName( );
Returns: String
This function does not take any arguments.
Examples
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
- Server
- GetBuiltInFunction()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)