There are sometimes thought that this could be an advatange. The proper way to address to statics is via the full namespace (I think you can do something thike this.self(arguments) for short), while "member instances" are access via this.
I agree though that this is a real bad practice but I don't think we should prevent it, I can easily imagine some people using this approach. I would favour a warning over an error. It would be easy to produce a warning at runtime via qx.Class.define we just need to look for members that are either objects (not functions or null) or arrays. Derrell Lipman wrote: > On Tue, Oct 6, 2009 at 17:40, dmbaggett <[email protected] > <mailto:[email protected]>> wrote: > > While this is working as advertised, it seems very counter-intuitive. It > seems > to me that the "features for object orientation" doc ought to include a > warning > about this. (Even better would be to have QooxDoo recognize this > situation > and prohibit it: the proper way to share data across instances is to use > statics, no?) > > > Yes, that's what statics are for. This "mis-feature" is documented > someplace in the wiki. I think, too, that a "generate.py lint" will tell > you about it. I agree, though, that a normal run of generate.py should > warn you about it. > > There are technical reasons that make doing it the "intuitive" way > difficult. > > Derrell > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
