User Tools

Site Tools


data-arrays-references

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
data-arrays-references [2019/05/28 10:45]
barryfp [Primitive types]
data-arrays-references [2019/10/19 17:03] (current)
barryfp [Arrays]
Line 106: Line 106:
 Arrays of the form described in this section are always passed by reference. Like data types, array references are read-only when passed between two components. If a writable copy of a constructed array is desired, the ''​clone''​ operator must be used to obtain such a copy. Arrays of the form described in this section are always passed by reference. Like data types, array references are read-only when passed between two components. If a writable copy of a constructed array is desired, the ''​clone''​ operator must be used to obtain such a copy.
  
 +Any array can have its current length queried using the attribute ''​arrayLength'':​
 +
 +<code d>
 +int q = x.arrayLength
 +</​code>​
 ====== Cloning data and arrays ====== ====== Cloning data and arrays ======
  
data-arrays-references.1559054701.txt.gz ยท Last modified: 2019/05/28 10:45 by barryfp