[vala/0.42] manual: Update from wiki.gnome.org
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] manual: Update from wiki.gnome.org
- Date: Tue, 30 Oct 2018 11:33:34 +0000 (UTC)
commit 4ff3fcb2732030f5757bbf080f1e0278cfaf5bd8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Oct 28 09:12:38 2018 +0100
manual: Update from wiki.gnome.org
doc/manual/manual.xml | 3 +++
1 file changed, 3 insertions(+)
---
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]