lua-users home
lua-l archive

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


Hans Hagen wrote:
Mike Pall wrote:
[snip snip]
[To clarify: it's a limit on the number of constants for the code of a
single function, which in turn limits the size of a single table
constructor. There's no limit (other than memory) for the number of
elements in a table. Gigabyte-sized tables get a bit unwieldy, though.]

is there a reason for this limitation?

You're going to hit the sBx limit too, for all those jump instructions. I don't think the Lua VM bytecode is designed for segments of code that large...

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia