Skip to content

Releases: mousebyte/luaclasslib

v3.0.1

24 Jul 17:38
f31ba3a
Compare
Choose a tag to compare

LuaClassLib version 3.0.1

Changes

  • luaC_isinstance, and by extension luaC_checkuclass, now take a fully qualified module path, and check for class table equality instead of class name equality.

v3.0.0

24 Jul 06:03
4633e43
Compare
Choose a tag to compare

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.

v2.2.1

10 Jul 07:08
1ea28c7
Compare
Choose a tag to compare

LuaClassLib version 2.2.1

New features:

Bug fixes:

  • Fix logic error in luaC_isclass and luaC_isobject
  • Add additional type checks

v2.1.0

26 Jun 17:58
f46787d
Compare
Choose a tag to compare

LuaClassLib version 2.1.0, featuring improved inheritance functionality and performance improvements.

v1.0.0

10 May 18:56
67a1429
Compare
Choose a tag to compare

Initial release, source code only.