Hi, as the warning in the source variant implies, overwriting members by including mixins is discouraged. Mixins are meant to add features, not modify them. If you overwrite members, what you are actually doing is to patch a class. To accomplish this, consider qx.Class.patch [1].
In the build variant, there are no warnings and therefore no evasive actions. As a consequence, the members get overwritten. Obviously, you don't want to rely on this. Tristan [1] http://demo.qooxdoo.org/current/apiviewer/#qx.Class~patch Am 11.08.2011 um 09:26 schrieb Waxolunist: > Hello > > I have a class including a mixin. > > Say class C has the member-function f and the mixin M has a member-function > called f. > > If I now include the mixin M in C I get correctly the warning in the source > version: > > /Overwriting member "f" of Class "C" is not allowed!/ > > Also if I call new C().f() the function f of C will be called. > > But in the build version new C().f() calls the function f of the mixin M. > > What can I do to call the function f of C? > And why are there differences? > > Kind regards, > > Christian > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Overriding-method-of-mixin-tp6675350p6675350.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. > http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
