File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,11 @@ $(H2 $(LNAME2 usage, Usage))
31
31
$(LI $(DDSUBLINK spec/function, system-functions, `@system`) functions)
32
32
)
33
33
34
- $(P `@system` functions may perform any operation legal from the perspective of the language including inherently
35
- memory unsafe operations like returning pointers to expired stackframes. These functions may not be called directly from
36
- `@safe` functions.)
34
+ $(P `@system` functions may perform any operation legal from the perspective of the language,
35
+ including inherently memory unsafe operations such as pointer casts or pointer arithmetic.
36
+ However, compile-time known memory corrupting operations, such as indexing a static array
37
+ out of bounds or returning a pointer to an expired stack frame, can still raise an error.
38
+ `@system` functions may not be called directly from `@safe` functions.)
37
39
38
40
$(P `@trusted` functions have all the capabilities of `@system` functions but may be called from
39
41
`@safe` functions. For this reason they should be very limited in the scope of their use. Typical uses of
You can’t perform that action at this time.
0 commit comments