lua-users home
lua-l archive

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


>Chunks are fairly simple, can't you just concatenate the binary files
>together. As long as there are no symbol clashes it should be ok.

This was true in 3.2, but starting in 4.0, binary files can have only one
precompiled chunk. But this does not mean that a binary file cannot combine
several files; luac does exactly that: if you do "luac a b c d" then luac
generates a fake main program that does the equivalent of "dofile'a'; dofile'b'
dofile'c'; dofile'd'. Try luac -l.
--lhf