Hi list,

Does anybody know if there is a better way than:
var statics = qx.Class.getByName(this.classname)

to access the static members/class variables of the "current" (most
specialized) class from one of its parent class?

this.self(arguments) returns me those of the parent class.

Shouldn't something like this be the default behavior for
this.self(arguments) (*)? This behavior is quite standard for class
variables in OO languages.

(*) In practice, and given Qooxdoo current way of doing things, you
can't simply do that, I think. I think you'd have to add a method to
get one "static attribute" back, which would do that and a recursive
lookup in the parent class if the attribute is not found in the
"specialized" class.

-- 
Gaëtan de Menten
http://openhex.org

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to