My apologies if the title to this question is a bit confusing. I could not find a better way to describe my question. I have always bashed my head against to wall to figure out this specific situation in lua.
Given the example below, will lua look for the function inside the localized variable on the stack or look for it in the hash part of the table? Take note that the global function is written as SomeGlobalFunc() instead of _G.SomeGlobalFunc()
--localize the global environment
local _G = _G
--run global func
SomeGlobalFunc()