Hi,
inspired by the implementation of warning for job shadowing, and by
@Override annotation in Java, i propose to have the same functionality
for Qx class members

here is an example:

qx.Class.define("trackr.view.EditTaskComposite", {
        extend: qx.ui.container.Composite,

        members: {
                // unintended override/shadowing of 
qx.ui.container.Composite._add !!
                // This unintended shadowing should be catched and notified as
warning during source/build job
                _add: function () {
                },

                // intentional override. In this case the @override directive
instruct the toolchain that
                // this override is intentional. The toolchain in this case 
should
generate a warning
                // if there's no corresponding method on the base class to 
override
                // @override
                _remove: function () {
                        this.base(arguments);
                }
        }
});

What do you think?

Gian Marco Gherardi
http://gianmarco.gherardi.me

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to