Hi, thanks for your reply. Since define returns the class object, I could just define the class with a name like "Anonymous", store the result as a local reference to the class and call qx.Class.undefine to remove it from the global namespace – and then use this pattern again and again, right?
>> Static inheritance cannot happen in JavaScript, as static >> members/functions are defined on the class >> object itself, not on the >> class prototype, so there is no way to traverse the prototype chain to >> get to >> the super class implementation. That makes sense. Unfortunate, but not the end of the world. >> toHashCode is used to uniquely identify instantiated objects descended >> from qx.core.Object. These >> objects are stored in qx.core. >> ObjectRegistry until object.dispose() is called. When the qx.core.Object >> >> constructor is called, a unique serial is generated for that object. >> toHashCode returns that generated >> key. Which means (I've just tested it, too) that new SomeClass().toHashCode() !== new SomeClass().toHashCode(), i.e. objects which are "equal" will still have different codes. I'll have to use my own implementation then. :) Thanks for your quick reply! -- View this message in context: http://qooxdoo.678.n2.nabble.com/Several-questions-abstract-classes-static-methods-hashcode-tp7584329p7584332.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
