Middleclass 4.x Object-Orientation for Lua
Posted: Thu Dec 31, 2015 6:26 pm
Hi everyone,
I have just released version 4.0.0 of middleclass, my OOP library for lua. You can find it on github:
https://github.com/kikito/middleclass
Most people should be able to update to middleclass 4.x from 3.x without issues.
Here's a list of the main changes, which might affect the update for some:
That's all, happy new year!
I have just released version 4.0.0 of middleclass, my OOP library for lua. You can find it on github:
https://github.com/kikito/middleclass
Most people should be able to update to middleclass 4.x from 3.x without issues.
Here's a list of the main changes, which might affect the update for some:
- There is a new way of doing the method lookup. This new way allows middleclass to support the __index metamethod, which was not possible before and had been a request since 2.0.
- I have also done some cleanup in middleclass removing some methods that no one seemed to be using : the class:implements method has dissappeared in 4.0.
- Finally, the other prominent change is that there is no global "Object" class any more, as it has been replaced by a hidden 'default mixin'. As a result, classes created with local X = class('X') will not have a superclass in 4.x, while in previous versions they had Object as a superclass.
That's all, happy new year!