Miles Bader
2010-11-30 04:58:44 UTC
Are there good workarounds for this?
I mean, if I have a file like:
local function T(x,y,z)
foooo (x,y,z)
end
T(1,2,3)
T(11,12,13)
T(21,22,23)
...
T(999981,999982,999983)
T(999991,999992,999993)
Lua can't load it, because there are too many constants...
Similarly, it can't load a file like
list = {
{1, 2, 3},
{11, 12, 13},
{21, 22, 23},
...
{999991, 999992, 999993}
}
process (list)
for the same reason.
Isn't this sort of thing supposed to be Lua's forte...?
[I guess I can do it by putting the contents in an _enormous_ string,
which I then parse, but geez... One really shouldn't have to do that
kind of thing!]
Thanks,
-Miles
I mean, if I have a file like:
local function T(x,y,z)
foooo (x,y,z)
end
T(1,2,3)
T(11,12,13)
T(21,22,23)
...
T(999981,999982,999983)
T(999991,999992,999993)
Lua can't load it, because there are too many constants...
Similarly, it can't load a file like
list = {
{1, 2, 3},
{11, 12, 13},
{21, 22, 23},
...
{999991, 999992, 999993}
}
process (list)
for the same reason.
Isn't this sort of thing supposed to be Lua's forte...?
[I guess I can do it by putting the contents in an _enormous_ string,
which I then parse, but geez... One really shouldn't have to do that
kind of thing!]
Thanks,
-Miles
--
Patience, n. A minor form of despair, disguised as a virtue.
Patience, n. A minor form of despair, disguised as a virtue.