Hi Lua veterans,
I’m just curious, is the following “sub function” local in Lua scope? The function “TEST” itself isn’t declared as local, but it’s added as an entry (or sub-class?) of the table “sampleFunction”, which is defined as local.
local sampleFunction = {}
function sampleFunction:TEST()
--function lines
end
So, by this notation, does the function “TEST” remain local, or does it remain global because it’s not *itself* declared as local? I’ve seen this format used in various codeshare modules, and I’m curious how the scoping on this works.
Thanks!
Brent Sorrentino
Ignis Design [import]uid: 9747 topic_id: 23128 reply_id: 323128[/import]