Closed kikito closed 13 years ago
This'll be 1.4 right?
Pretty much, yes.
This has been solved with BlackBulletIV's pull request.
FYI - adding "fixes #7" to any commit description would have automatically closed this issue.
Also, there was a small problem on the "new" new: it used Object.allocate instead of theClass.allocate. I've changed that and released 1.4
Ah thanks, I'll remember that.
I thought Object.allocate would've worked, because it used Object.allocate(theClass), instead of theClass:allocate(). If this form still works, which I can't see how it wouldn't, it would be, in theory, faster, depending on the level of inheritance.
Oh never mind. I looked at your commit, and I now I see why. Allocate must be overridable.
In some occasions it is desirable to split object creation into two steps: the "allocation" step and the "initialization" step. This way mixins can modify instances before initialize is called.
(reference: https://github.com/kikito/middleclass-extras/issues/#issue/4 )