Talk:Creating an Array: Difference between revisions

error detected
(error detected)
Line 21:
 
I think the definition of array needs further discussion over and above what is provide in the existing definition, as the example for Python is actually a list and its capabilities and behaviour differ considerable from what I consider to be a traditional array. For example a Python list is not sparse and you cannot predefine it's size. Its size is determined by its contents. So I think the python example and the other array related examples are really incorrect and misleading. If you want traditional array characteristics the example should use numarray or the included array module. Without these points of clarification (and I assume similiar comments could also be made about some of the other languages (ie Perl)) it would seem the examples in fact do not fulfill what this project sets out to achieve.
 
== PHP ==
::#You would call the array by this code. This will call the 3rd 1 on the second list
::echo $array[1][3];
:This is in fact wrong, 'echo $array[1][3] would print the 4th element within the second element, not the 3rd one. I'll edit tonight or something... --[[User:CrashandDie|CrashandDie]] 07:18, 2 July 2007 (EDT)