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...
Companionate asked 7/9, 2018 at 22:46

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...
Caryophyllaceous asked 3/5, 2017 at 15:31

2

Solved

How can I get a size of a Lua table in C? static int lstage_build_polling_table (lua_State * L) { lua_settop(L, 1); luaL_checktype(L, 1, LUA_TTABLE); lua_objlen(L,1); int len = lua_tointeger(L...
Dunaway asked 30/10, 2014 at 0:57

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...
Sporocyst asked 5/6, 2013 at 20:19
1

© 2022 - 2024 — McMap. All rights reserved.