lua-users home
lua-l archive

Re: Seeking advice for good style: more files than submodules

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


Why not create a "lua preprocessor" that expands the contents of the require statements to a single file?
-joe
On Mar 6, 2007, at 12:17 PM, Norman Ramsey wrote:
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

AltStyle によって変換されたページ (->オリジナル) /