lua-users home
lua-l archive

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


On Thu, 31 Jul 2008, Christian Lindig wrote:
>
> Today, luac compiles multiple modules by prepending code that calls each
> chunk (i.e. module). As a consequence, embedded 'requires' are executed
> before all modules are executed. Is this behavior still useful in the
> presence of 'module' and 'require'?

It works OK for me if I present the modules to luac sorted so that all
require calls occur after the corresponding module call.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
BISCAY: SOUTHWESTERLY 5 OR 6, OCCASIONALLY 7 LATER. ROUGH. RAIN OR SHOWERS.
MODERATE OR GOOD.