Re: Problems with Mixins

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: Problems with Mixins

Hugh Gibson-2
> The mixin constructor is called _after_ the normal constructor
> rather than before. This is the wrong default.
> Why? Because the mixin can make no assumptions about the class it's
> mixed in.. so it won't be calling or setting properties other than
> its own.
> But the class using the mixin knows its using the mixin. It wants to
> use the mixin in the contructor, but it can't.
> This isn't easily overcome with using inheritance when the ordinary
> qooxdoo classes, even those not taking any constructor arguments are
> wrongfully modelled as classes rather than mixins.
> Perhaps i'm missing something here.

Ralf, if you still feel strongly about this I suggest that you raise a
bug report about it.


Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
qooxdoo-devel mailing list
[hidden email]