Skip to content

v3.0.0

Compare
Choose a tag to compare
@mousebyte mousebyte released this 24 Jul 06:03
· 3 commits to main since this release
4633e43

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 in package.loaded to be found by the library.
  • luaopen_class has been replaced with a more traditional luaopen_lcl, which can be found by require "lcl" or used with luaL_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 the luaC_Class object on the top of the stack, or creates one if it does not yet exist. It no longer takes class table arguments.