Finished basic datatypes and basic io

This commit is contained in:
Milo Gilad 2017-08-24 15:54:48 -04:00
parent e8897e60e0
commit ca5d90eb7d

28
vala.html.markdown Normal file → Executable file
View File

@ -21,5 +21,31 @@ Comment */
* Documentation comment
*/
/*
Data Types
*/
```
// Vala supports the data types supported by most other programming languages.
char character = 'a'
unichar unicode_character = 'u' // 32-bit unicode character
int i; // ints can also have guaranteed sizes (e.g. int64, uint64)
uint j;
long k;
short l;
ushort m;
/*
Basic Syntax
*/
// Like in C#, scope is defined using braces.
// An object or reference is only valid between braces.
```