Hugh Gibson schrieb:
>> Yes, this is normal.
>>
>> Static members are not inherited. You need to use a additional 
>> ".superclass" then.
>>     
>
> Was this a conscious design decision? It seems to me to go against the OO
> grain to have to work out which superclass defines the static that you
> want.
>
>   
Yes, you can see static methods as normal functions which happen to be 
placed inside a namespace. In qooxdoo 0.6 and most other frameworks 
static methods are always called using their fully qualified name 
(namespace+function name). this.self in qooxdoo is a convenience 
function to get a reference to the class the method is defined in. With 
this reference static methods from the same class can be called. Calls 
to static methods of other classes must always be fully qualified.

If you want to call a static method from another static method you have 
two choices:

1. If the other static method is defined in the same class it can be 
called with "this.otherStatic()"
2. If the other static method is defined in an other class, including 
the super class, is should be callled fully qualified.


I hope this helped,
Best Fabian

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to