diff options
author | Araq <rumpf_a@web.de> | 2013-01-23 13:22:06 -0800 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-01-23 13:22:06 -0800 |
commit | 3462040d39ad68b3b79bd66e103ae6b14d066200 (patch) | |
tree | 9ed65eb297cc8c87bd0d6dea1bf93c934a5b490d /lib | |
parent | c1536c12f5fb1f8435bf4b5dd662c2d82e7f7866 (diff) | |
parent | 351e66b76766bd5119b0af91b769fcc7768af097 (diff) | |
download | Nim-3462040d39ad68b3b79bd66e103ae6b14d066200.tar.gz |
Merge pull request #315 from gradha/pr_adds_example_of_addr_cast_usage
Adds example of addr/cast usage and indexes addr.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index 26e5ac228..130b8532f 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -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`` |