ziglua
ziglua copied to clipboard
Zig bindings for the Lua C API
How much should we cover up the differences between Lua versions? `lua_len` isn't available in Lua 5.1. Should `Lua.len()` support this by calling rawLen or objlen?
Depending on Lua 5.4 shouldn't require fetching the sources for the other 5 dependencies. This requires fixes in zig build. See https://github.com/ziglang/zig/issues/21525 and https://github.com/ziglang/zig/issues/20716 https://github.com/ziglang/zig/pull/20051 for reference, I think this...
I maintain a version of Lua 5.1 that has a patch for security https://github.com/natecraddock/lua I think it would be better to use the Lua 5.1 tarball from lua.org and use...
This function is only used in Lua 5.2. The docstring mentions that the ctx parameter is still set when the function returns errors so this may need to be rewritten
Looks like there's no luaL_findtable in Lua 5.4 so the `registerFns` function fails to build. https://github.com/natecraddock/ziglua/blob/beb0b78de0307c0a4ba5edefcbbfa8d4e8957e72/src/lib.zig#L2813
Added an example to the examples folder and added explanatory sentences to the *.md files
# Summary When a struct contains an optional field without a default value, an arbitrary value is assign (I suspect it is the uninitialized memory). # Possible solution I noticed...
It looks like [the Lua 5.5 beta](https://www.lua.org/work/doc/readme.html#changes) is now available!