Commit 72ba2cfa authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

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
parent 3a6a82e2
2007-09-01 Jürg Billeter <j@bitron.ch>
* doc/vala/types.xml: add introduction to data types
2007-09-01 Jürg Billeter <j@bitron.ch> 2007-09-01 Jürg Billeter <j@bitron.ch>
* vala/valatrystatement.vala: visit finally body, fixes bug 467919 * vala/valatrystatement.vala: visit finally body, fixes bug 467919
......
<?xml version="1.0"?> <?xml version="1.0"?>
<section id="types"> <section id="types">
<h>Types</h> <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> </section>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment