Hey,
> I'm wondering why the array defined in qx.data.Array does not inherit from 
> qx.type.BaseArray, or qx.type.Array ?
To answer the question, we need to know some differences of those two arrays. 
The BaseArray extend the native Array which means it has all the API the native 
array has like accessing the values with the brackets. That means, that a user 
can read and set the values like:

array[1] = array[0];

With the data array, you unfortunately don't have the brackets notation. As sad 
as it is that we don't have that, it is necessary because the data array's main 
purpose is to generate change events on every change on the array. But writing 
a value like in the example above is impossible to track in all browsers so we 
can't allow the brackets to access the array.
With that knowledge, it should be clear that subclassing the BaseArray is not 
possible because we would get the brackets notation in which then, breaks the 
main purpose of the data array.

> Plus the qx.type.BaseArray explanation say it's the base of all Array in 
> qooxdoo.
Thats simply a documentation error. I changed that "all" to "most" which should 
fix the wrong documentation.

> Is that normal, or a known error ?
As you see, thats all on purpose, expect the documentation stuff. ;)

Regards,
Martin


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to