How to make namespace in lua?
snippet in lua
How to make namespace in lua?
user8488
Foo = {} -- make a table called 'Foo'
Foo.Func = function() -- create a 'Func' function in stored in the table
print 'foo' -- do something
end
Foo.Func() -- call the function