summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-09-01 12:59:08 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-09-01 12:59:08 +0000
commit72ba2cfae64160b2106b7c5499d6481d43d51303 (patch)
treef521827cf41692a60612cb3994d861ffd4a3ed99 /doc
parent3a6a82e29cb3646158f32b0a94458cf06660e228 (diff)
downloadvala-72ba2cfae64160b2106b7c5499d6481d43d51303.tar.gz
add introduction to data types
2007-09-01 Juerg Billeter <j@bitron.ch> * doc/vala/types.xml: add introduction to data types svn path=/trunk/; revision=563
Diffstat (limited to 'doc')
-rw-r--r--doc/vala/types.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/vala/types.xml b/doc/vala/types.xml
index 55954c670..3d6f44b37 100644
--- a/doc/vala/types.xml
+++ b/doc/vala/types.xml
@@ -1,5 +1,7 @@
<?xml version="1.0"?>
<section id="types">
<h>Types</h>
+ <p>Vala supports two kinds of data types: value types and reference types. Value types include simple types (e.g. char, int, and float), enum types, and struct types. Reference types include class types, interface types, and array 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>
</section>