]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doc: Move array types from reference to value types
authorDavid Janzso <ext-david.2.janzso@nokia.com>
Tue, 7 Apr 2009 16:21:49 +0000 (19:21 +0300)
committerJürg Billeter <j@bitron.ch>
Sun, 12 Apr 2009 15:59:46 +0000 (17:59 +0200)
doc/vala/types.xml

index bd9ae1b1df8ba5e554082ba47996a05250d7e97b..8b383f48d33d5798262a5b518d0eebd117549829 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <section id="types">
        <h>Types</h>
-       <p>Vala supports four kinds of data types: value types, reference types, type parameters, and pointer types. Value types include simple types (e.g. char, int, and float), enum types, and struct types. Reference types include object types, array types, delegate types, and error types. Type parameters are parameters used in generic types.</p>
+       <p>Vala supports four kinds of data types: value types, reference types, type parameters, and pointer types. Value types include simple types (e.g. char, int, and float), enum types, array types, and struct types. Reference types include object types, delegate types, and error types. Type parameters are parameters used in generic types.</p>
        <p>Value types differ from reference types in that variables of the value types directly contain their data, whereas variables of the reference types store references to their data, the latter being known as objects. With reference types, it is possible for two variables to reference the same object, and thus possible for operations on one variable to affect the object referenced by the other variable. With value types, the variables each have their own copy of the data, and it is not possible for operations on one to affect the other.</p>
        <blockquote>
 type:
@@ -18,6 +18,7 @@ type:
 value-type:
        struct-type
        enum-type
+        array-type
 
 struct-type:
        type-name
@@ -52,6 +53,21 @@ floating-point-type:
 
 enum-type:
        type-name
+
+array-type:
+       non-array-type <l>[]</l>
+       non-array-type <l>[</l> dim-seperators <l>]</l>
+
+non-array-type:
+       value-type
+       object-type
+       class-type
+       delegate-type
+       error-type
+
+dim-separators:
+       <l>,</l>
+       dim-separators <l>,</l>
                </blockquote>
                <section id="structtypes">
                        <h>Struct types</h>
@@ -86,7 +102,6 @@ enum-type:
 reference-type:
        object-type
        class-type
-       array-type
        delegate-type
        error-type
        weak-reference-type
@@ -105,21 +120,6 @@ object-type:
 class-type:
        type-name <l>. Class</l>
 
-array-type:
-       non-array-type <l>[]</l>
-       non-array-type <l>[</l> dim-seperators <l>]</l>
-
-non-array-type:
-       value-type
-       object-type
-       class-type
-       delegate-type
-       error-type
-
-dim-separators:
-       <l>,</l>
-       dim-separators <l>,</l>
-
 delegate-type:
        type-name