Creating a Namespace In Lua Across Files -
if want have several files in same namespace/table, need check if table has been defined? in otherwords table:
testns = {}
something like:
if(nil == testns) testns = {} end
i new lua if there alternative, let me know.
the idiom is
testns = testns or {}
Comments
Post a Comment