TIL: Lua has the table of global variables exposed, so one can check if e.g. a function is defined before attempting to use it with _G["myfunc"]~=nil posted 2024-03-29 07:42, tagged TIL, nomain, lua, TIC80