lua-users home
lua-l archive

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

> This is not a great alternative, but it is something I've found to work 
> in simple cases. Compile all modules together and then glue the binary 
> to srlua. The modules must be ordered by dependency in the compile 
> command, and the modules can't use "module(...)".

You can also use replacements for require and dofile (but you probably
still need to order them by dependency). A Lua Gem titled "Lua Script
Packaging" has been proposed by Han Zhao on this subject.