Re: middleclass & extras: middleclass 3.0 is out!
Posted: Sun Jul 27, 2014 11:07 am
Yes, it's a "hook". It's there so that you can (for example) print something on a console every time a subclass of certain class is created.
I guess by "middleclass' classes are not instances of a Class class" you mean "middleclass' objects are not instances of a class Class"? I have no idea why any class should be an instance of another class.kikito wrote: This meant that I had to cut down a lot of things. In particular, middleclass' classes are not instances of a Class class, and mixins are not instances of a Module class; the wiring required for that to work made the code too big. Some features were just too expensive time-wise (there was a super keyword in earlier versions of middleclass, as well as built-in support for __index metamethods). But features that I didn't particularly use, but matched the criteria above, where included.
It does.murks wrote:Another question: Is there any reason why middleclass does not implement class commons?
It seems like it was.Roland_Yonaba wrote: Though I am not sure it was updated for MiddleClass 3.0.
I believe he means "subclass", instead of "instance".murks wrote: I guess by "middleclass' classes are not instances of a Class class" you mean "middleclass' objects are not instances of a class Class"? I have no idea why any class should be an instance of another class.