It's a bit difficult finding documentation on luabind class syntax. I have two small questions:
1) Is there some way to make these support metamethods? (__index, __newindex)
I'm trying to make an alternative to the "viewbuilder" class, adding some behaviors and stuff that doesn't exist natively. For simplicity, I want this class to revert to using the standard renoise.ViewBuilder() whenever I haven't defined my own method that "overrides" it. Will I have to revert to oldschool Lua OO to access __index and make this possible?
Also tried this, but it doesn't work:
2) A small question in the comment below:
class 'MyClass' function MyClass:__init(value) self.value = value return self -- this line is pretty useless, right? when would it be useful? end
Edited by joule, 12 January 2017 - 10:54.