@@ -850,16 +850,20 @@ $(GNAME ShiftExpression):
850
850
-------------
851
851
)
852
852
853
- $(H2 $(LNAME2 add_expressions, Add Expressions))
853
+ $(H2 $(LNAME2 additive_expressions, Additive Expressions))
854
854
855
855
$(GRAMMAR
856
856
$(GNAME AddExpression):
857
857
$(GLINK MulExpression)
858
858
$(GSELF AddExpression) $(D +) $(GLINK MulExpression)
859
859
$(GSELF AddExpression) $(D -) $(GLINK MulExpression)
860
- $(GLINK CatExpression )
860
+ $(GSELF AddExpression) $(D ~) $( GLINK MulExpression )
861
861
)
862
862
863
+ $(H3 $(LNAME2 add_expressions, Add Expressions))
864
+ $(P In the cases of the Additive operations $(D +) and $(D -):
865
+ )
866
+
863
867
$(P If the operands are of integral types, they undergo the $(USUAL_ARITHMETIC_CONVERSIONS),
864
868
and then are brought to a common type using the
865
869
$(USUAL_ARITHMETIC_CONVERSIONS).
@@ -882,10 +886,9 @@ $(GNAME AddExpression):
882
886
$(P Add expressions for floating point operands are not associative.
883
887
)
884
888
885
- $(H3 $(LNAME2 pointer_arithmetic, Pointer Arithmetic))
889
+ $(H4 $(LNAME2 pointer_arithmetic, Pointer Arithmetic))
886
890
887
- $(P If the operator is $(D +) or $(D -), and
888
- the first operand is a pointer, and the second is an integral type,
891
+ $(P If the first operand is a pointer, and the second is an integral type,
889
892
the resulting type is the type of the first operand, and the resulting
890
893
value is the pointer plus (or minus) the second operand multiplied by
891
894
the size of the type pointed to by the first operand.
@@ -935,12 +938,9 @@ assert(d == 2);
935
938
)
936
939
937
940
938
- $(H2 $(LNAME2 cat_expressions, Cat Expressions))
939
-
940
- $(GRAMMAR
941
- $(GNAME CatExpression):
942
- $(GLINK AddExpression) $(D ~) $(GLINK MulExpression)
943
- )
941
+ $(H3 $(LNAME2 cat_expressions, Cat Expressions))
942
+ $(P In the case of the Additive operation $(D ~):
943
+ )
944
944
945
945
$(P A $(I CatExpression) concatenates a container's data with other data, producing
946
946
a new container.)
0 commit comments