Skip to content

Commit 8aa7520

Browse files
authored
Merge pull request #2056 from quickfur/safefuncs2
Better wording for clarifying how @safe restricts pointers. merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2 parents 148efa9 + 4ab1697 commit 8aa7520

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/function.dd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,7 @@ $(H3 $(LNAME2 safe-functions, Safe Functions))
23482348
$(UL
23492349
$(LI No casting from a pointer type to any type other than $(CODE void*).)
23502350
$(LI No casting from any non-pointer type to a pointer type.)
2351-
$(LI No modification of pointer values other than assignment from a
2352-
pointer of the same type.)
2351+
$(LI No pointer arithmetic (including pointer indexing).)
23532352
$(LI Cannot access unions that have pointers or references overlapping
23542353
with other types.)
23552354
$(LI Calling any system functions.)

0 commit comments

Comments
 (0)