Something like this:
function foo() print( __func__ ) ... end
How can it be done?
#!/usr/bin/lua local function myFunc() print(debug.getinfo(1, "n").name); end myFunc()