|
|
|
|
|
by WalterBright
2757 days ago
|
|
D's only runtime memory safety feature is array bounds checking. (The same as Rust, I believe.) The rest is compile time. D's compile time memory safety focusses on: 1. @safe and @system code 2. disallowing unsafe pointer operations 3. safe alternatives to pointers 4. controlling escaping of pointers 5. controlling the scope of addresses |
|