qx.Class.define works anywhere, so yes you can declare anonymous classes
inside another class.

You can't do

new AbstractClass {...}

But you can do

new qx.Class.define('ThrowAwayName', {
  extends: AbstractClass,
  ...
})

But then ThrowAwayName is always defined as such, unless you explicitly
undefine it, so it's not really anonymous, but it doesn't have to be in a
file of its own. You also lose some of the compiler optimization.

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.

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.

Also to note, the generated hash code is used in the default toString
implementation too.

Does this answer your questions?
 On Aug 11, 2013 7:19 AM, "Airblader" <[email protected]> wrote:

> Hi,
>
> sorry, I'll actually have to extend the first question: Can I also somehow
> declare an anonymous inner class of an interface? So the question would
> just
> be: Can I somehow declare an anonymous inner class in any way?
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Several-questions-abstract-classes-static-methods-hashcode-tp7584329p7584330.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
>
------------------------------------------------------------------------------
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

Reply via email to