I noticed some other mods have something similar, but I haven't found something truly OO and/or flexible enough to fit my needs. Would there be interest to release this as a separate "mod" for other mods to use?
It supports:
- namespace hierarchies
- subclassing, with support for `super` calls to a base implementation
- constructors (through an __init method)
- dot syntax with `self` support (so you can do `object.do_something(arg)`, and in `do_something(self, arg) … end` self will be correctly set to the object)
- support for existing metatable mechanisms like __index, __newindex, __tostring etc
- lazy properties through initializer methods
- dynamic properties through getter/setter methods
- method forwarding to other classes, unconditional and unconditional
- serialization support, including reviving "frozen" objects from the global table after a load
I can show some examples if anyone cares.