It seems that I am questioning nonsense here, but no.
If you have a function called: func ()
How do you check if it exists or not? Actually, I am interested that, when executing a function that does NOT exist, does not return an error.
That is, imagine that you execute a function that does not exist. How do you avoid getting an error back?
I have seen checks within _G, I have seen conditions matched to nil. Nothing works. If you invoke a function that does not exist, it will always return an error. Any ideas?
Check that a function exists or not, can be very useful in specific cases.
In javascript it’s something like: if (typeof(func) == “function”) then … (or != “undefined”). I guess it is very similar in LUA. What does “type(func)” output?