From: Rico Tzschichholz Date: Sun, 28 Oct 2018 08:12:38 +0000 (+0100) Subject: manual: Update from wiki.gnome.org X-Git-Tag: 0.43.1~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3dac37f4900f9e85ca5be9629f31d7fc36a91b;p=thirdparty%2Fvala.git manual: Update from wiki.gnome.org --- 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 @@ Array types TODO: Check correctness. 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. +A size can be retrieved from an array using the length member, this returns an int if the array has one dimension or an int[] if the array contains several dimensions. +You can also move or copy and array using respectively the move and copy members. +For single-dimension arrays, a resize member is also available to change the length of the array. See Expressions/Array instantiation for how to instantiate an array type.