lua-users home
lua-l archive

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


I for one think it would be nice if the compiler could do this by itself when it notices that the constant pool is full.


On Tue, Nov 30, 2010 at 6:48 AM, steve donovan <steve.j.donovan@gmail.com> wrote:
On Tue, Nov 30, 2010 at 7:12 AM, Alexander Gladysh <agladysh@gmail.com> wrote:
> Basically, the limit is per chunk. So, multiply your chunks (functions).

So, let me see if I understand. If the file looked like this:

(function()
 f(1),
 f(2),
 ..
 f(MAX_VARS)
)()
(function()
 f(MAX_VARS+1)
 ...
 f(MAX_VARS+MAX_VARS)
)()

etc, it would work?

One could also make the closures tables and loop over them later.

A little more work for the template, but that's also what Lua is good for ;)

steve d.