mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Finished basic datatypes and basic io
This commit is contained in:
parent
e8897e60e0
commit
ca5d90eb7d
28
vala.html.markdown
Normal file → Executable file
28
vala.html.markdown
Normal file → Executable 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.
|
||||
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user