summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-10-28 09:12:38 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-10-28 09:12:38 +0100
commit6c3dac37f4900f9e85ca5be9629f31d7fc36a91b (patch)
tree5c359b83aac80d5453750a93931d921c3e3b15d4 /doc
parent2f556804eb7aca850ea7528c3b408c10a3d10226 (diff)
downloadvala-6c3dac37f4900f9e85ca5be9629f31d7fc36a91b.tar.gz
manual: Update from wiki.gnome.org
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/manual.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml
index b8251686a..e15c9374d 100644
--- a/doc/manual/manual.xml
+++ b/doc/manual/manual.xml
@@ -361,6 +361,9 @@
<title>Array types</title>
<para>TODO: Check correctness. </para>
<para>An array is a data structure that can contains zero or more elements of the same type, up to a limit defined by the type. An array may have multiple dimensions; for each possible set of dimensions a new type is implied, but there is a meta type available that describes an array of any size with the same number of dimensions, i.e. int[1] is not the same type as int[2], while int[] is the same type as either. </para>
+<para>A size can be retrieved from an array using the <code>length</code> member, this returns an int if the array has one dimension or an int[] if the array contains several dimensions. </para>
+<para>You can also move or copy and array using respectively the <code>move</code> and <code>copy</code> members. </para>
+<para>For single-dimension arrays, a <code>resize</code> member is also available to change the length of the array. </para>
<para>See <ulink url="https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/Expressions#Array_instantiation">Expressions/Array instantiation</ulink> for how to instantiate an array type. </para>
</section>