Skip to content

Commit b3a3ad8

Browse files
committed
rename Pointer Operations -> Pointer Arithmetic; add links
1 parent 75c01f6 commit b3a3ad8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/expression.dd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ $(GNAME AddExpression):
787787
$(P Add expressions for floating point operands are not associative.
788788
)
789789

790-
$(H3 $(LNAME2 pointer_ops, Pointer Operations))
790+
$(H3 $(LNAME2 pointer_arithmetic, Pointer Arithmetic))
791791

792792
$(P If the operator is $(D +) or $(D -), and
793793
the first operand is a pointer, and the second is an integral type,
@@ -814,6 +814,8 @@ $(GNAME AddExpression):
814814
The type of the result is $(D ptrdiff_t).
815815
)
816816

817+
$(P $(GLINK IndexExpression) can also be used with a pointer.)
818+
817819
$(H2 $(LNAME2 cat_expressions, Cat Expressions))
818820

819821
$(GRAMMAR
@@ -901,7 +903,7 @@ $(GNAME UnaryExpression):
901903

902904
$(TABLE
903905
$(THEAD Operator, Description)
904-
$(TROW `&`, Take memory address of an $(RELATIVE_LINK2 .define-lvalue, lvalue)$(COMMA) producing a pointer)
906+
$(TROW `&`, Take memory address of an $(RELATIVE_LINK2 .define-lvalue, lvalue) - see $(DDSUBLINK arrays, pointer, pointers))
905907
$(TROW `++`, Increment before use - see $(RELATIVE_LINK2 order-of-evaluation, order of evaluation))
906908
$(TROW `--`, Decrement before use)
907909
$(TROW `*`, Dereference/indirection - typically for pointers)

0 commit comments

Comments
 (0)