summaryrefslogtreecommitdiff
path: root/doc/lang.txt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-09-16 18:51:23 -0400
committerOri Bernstein <ori@eigenstate.org>2014-09-16 18:51:23 -0400
commitce2ad1617f3577574cd47f44af4bbbfaa57c0ecf (patch)
tree05d1e670e5046df2df30b004b77c84700a1a4a09 /doc/lang.txt
parentf744db6bbbfe7232448268f17a8d61200e45294c (diff)
downloadmc-ce2ad1617f3577574cd47f44af4bbbfaa57c0ecf.tar.gz
Fix documentation for pointers.
We changed from '#' to '*' for pointers long ago. This updates the language docs to match that.
Diffstat (limited to 'doc/lang.txt')
-rw-r--r--doc/lang.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lang.txt b/doc/lang.txt
index 008c95a..26763f6 100644
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -372,13 +372,13 @@ TABLE OF CONTENTS:
x.name Member lookup
x++ Postincrement
x-- Postdecrement
+ x# Dereference
x[e] Index
x[from,to] Slice
Precedence 12:
++x Preincrement
--x Predecrement
- *x Dereference
&x Address
!x Logical negation
~x Bitwise negation
@@ -498,9 +498,9 @@ TABLE OF CONTENTS:
slice array
Pointers are, as expected, values that hold the address of
- the pointed to value. They are declared by appending a '*'
+ the pointed to value. They are declared by appending a '#'
to the type. Pointer arithmetic is not allowed. They are
- declared by appending a '*' to the base type
+ declared by appending a '#' to the base type
Arrays are a group of N values, where N is part of the type.
Arrays of different sizes are incompatible. Arrays in
@@ -512,7 +512,7 @@ TABLE OF CONTENTS:
contents. They are declared by appending a '[,]' to the base
type.
- foo* type: pointer to foo
+ foo# type: pointer to foo
foo[123] type: array of 123 foo
foo[,] type: slice of foo