We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
(void*) - (void*)
1 parent 2cdbe16 commit bd515f0Copy full SHA for bd515f0
spec/expression.dd
@@ -563,7 +563,8 @@ $(GNAME AddExpression):
563
$(P If both operands are pointers, and the operator is $(D -),
564
the pointers are subtracted and the
565
result is divided by the size of the type pointed to by the
566
- operands. It is an error if the pointers point to different types.
+ operands. In this calculation the assumed size of $(D void) is one byte.
567
+ It is an error if the pointers point to different types.
568
The type of the result is $(D ptrdiff_t).
569
)
570
0 commit comments