lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm building a fairly large package consisting of a mix of C code and
Lua code.  Following previous advice I've made the C code a submodule,
which is working well.  But this is going to be a large package (probably
2000-3000 lines of Lua code), and while there are several well-defined
submodules in the package, some of the submodules (such as the module
containing all the package-specific commands intended for clients) are
too large to put in one file.  So, I would like to have multiple
files, each loaded with 'require', that all contribute to the same
submodule.

Does anyone have advice about sensible ways to do this?
(I have several ideas but feel I am treading on thin ice...)


Norman