Merge pull request #315 from gradha/pr_adds_example_of_addr_cast_usage

Adds example of addr/cast usage and indexes addr.
This commit is contained in:
Araq 2013-01-23 13:22:06 -08:00
commit 3462040d39
3 changed files with 29 additions and 17 deletions

View file

@ -38,7 +38,8 @@ type
char* {.magic: Char.} ## built-in 8 bit character type (unsigned)
string* {.magic: String.} ## built-in string type
cstring* {.magic: Cstring.} ## built-in cstring (*compatible string*) type
pointer* {.magic: Pointer.} ## built-in pointer type
pointer* {.magic: Pointer.} ## built-in pointer type, use the ``addr``
## operator to get a pointer to a variable
const
on* = true ## alias for ``true``