|
|
||
|
I found http://lua-users.org/wiki/PackageSystem which is interesting, but I'd still like to hear more about how people actually do this themselves. Thanks in advance. -- G. On 7/19/06, Guido Sohne <guido@sohne.net> wrote:
I have a bunch of lua files and inside those files I create a table to
hold the contents as a 'private' namespace. e.g
app = {}
function app.init(data)
app.userdata = data
end
I've seen syntax along the lines of module('foo') and function
foo:bar(baz) but these appear to not be in the PIL book and I can't
find any example in the wiki.
Could anyone tell me about Lua code modularization or point me to a
place I can read about it?
-- G.