[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: FAQ? combining all modules into a single bytecode file
- From: Tony Finch <dot@...>
- Date: Fri, 1 Aug 2008 13:00:32 +0100
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.