lua-5.1 Questions
4
Solved
Lua 5.1's API provides an error() function, which accepts a string (the error message) and a "level".
My understanding is that level, lets you move up the call stack, so you can provide n...
Hello asked 17/11, 2020 at 8:8
1
Solved
I want to use an eval function in Lua,
Can't make it work. Did not find documentation on it, does Lua even have an eval function ?
Code tried :
a=1
print(a)
eval('print(a)')
eval 'print(a)'
Of...
3
Solved
I'm using a front-end of Lua which is unfortunately outdated, so I'm stuck with version 5.1 here, meaning the bit32 library is out of reach (which I probably could have used to convert this).
So I...
Bimetallic asked 19/9, 2013 at 4:55
2
The platform I'm working on has pretty tight memory constraints and I'm trying to find a way to parse big JSON strings without ever loading more than a few hundred bytes at max into the memory. The...
2
Solved
2
Solved
From the Lua 5.1 documentation for load():
Loads a chunk using function func to get its pieces. Each call to func must return a string that concatenates with previous results. A return of an emp...
1
© 2022 - 2024 — McMap. All rights reserved.