3 ms·
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 focuss
by WalterBright 8y 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
- SamReidHughes 8y agoRust has other runtime memory safety checking, like RefCell.