ziglua icon indicating copy to clipboard operation
ziglua copied to clipboard

LUA_LOADED_TABLE and friends

Open digitcrusher opened this issue 1 year ago • 1 comments

It would be nice if constants such as LUA_LOADED_TABLE were available, instead of having to rely on LUA_LOADED_TABLE always being equal to "_LOADED". I think the following excerpt from the Lua reference manual is a good argument for this change:

Lua versions can always change the C API in ways that do not imply source-code changes in a program, such as the numeric values for constants or the implementation of functions as macros.

And besides, I think everyone can agree that lua.loaded_table looks nicer than "_LOADED". :-)

digitcrusher avatar Jun 08 '24 19:06 digitcrusher

Good point! This fits in well to #35 so I made note of it there

natecraddock avatar Jun 08 '24 20:06 natecraddock