Releases: mousebyte/luaclasslib
Releases · mousebyte/luaclasslib
v3.0.1
v3.0.0
LuaClassLib version 3.0.0
This version of LuaClassLib comes with major changes to the workflow, so be sure to read the changes carefully. As always, more detailed info can be found in the documentation.
Changes:
- LCL is now a shared library.
⚠️ If you have previously installed LCL manually, be sure to remove the old libluaclass.o from your system.
- LCL will now use the built-in package system to search for classes.
- Classes defined by a
luaC_Class
will no longer be stored in the registry by name when first created. It will be up to the user to organize these classes into modules and store them inpackage.loaded
to be found by the library. luaopen_class
has been replaced with a more traditionalluaopen_lcl
, which can be found byrequire "lcl"
or used withluaL_requiref
.luaC_packageadd
has been removed. Two helper functions, luaC_setpackageloaded and luaC_getpackageloaded have been added to replace it.lcl.register
has been removed. Classes defined in Lua/Moonscript will now be found using the package system.luaC_register
has been replaced with luaC_classfromptr, which obtains the Lua class table associated with theluaC_Class
object on the top of the stack, or creates one if it does not yet exist. It no longer takes class table arguments.
v2.2.1
LuaClassLib version 2.2.1
New features:
- luaC_typename
- luaC_rawget
- luaC_rawset
- luaC_overrideglobals
- Documentation for Lua functions provided in the library.
Bug fixes:
- Fix logic error in luaC_isclass and luaC_isobject
- Add additional type checks