lua-users home
lua-l archive

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


>So, the bottom line seems to be that, in a 16-bit version, there can
>only be 29-30 functions in a chunk or inside another function.  Am I
>right?

Yes. A chunk is actually an ordinary function and so all functions defined
inside a chunk are actually "functions defined inside a function".

If you more functions in a chuk, try this:

local DOIT

DOIT=function ()
-- define some functions here
end
DOIT()

DOIT=function ()
-- define some more functions here
end
DOIT()

...

--lhf