Could anybody comment on this? On Dec 6, 2007 12:33 PM, Gaetan de Menten <[EMAIL PROTECTED]> wrote: > 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 >
-- Gaëtan de Menten http://openhex.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
