4 ms·
A prototype for the O/B system: https://github.com/dlang/dmd/pull/10586 https://github.com/dlang/dmd/pull/10586
by WalterBright 7y ago
A prototype for the O/B system:
https://github.com/dlang/dmd/pull/10586 https://github.com/dlang/dmd/pull/10586
- giancarlostoro 7y agoThis is really fascinating, are there some benefits you foresee of this addition to D? I know the O/B system has been popularized by Rust, but have not really thought about it outside of Rust, is this an efforts towards -betterC or will it be used towards those efforts?
- WalterBright 7y agoAn O/B system is a way to: 1. eliminate double frees 2. eliminate use-after-free 3. eliminate memory leaks 4. using undefined pointers when using explicit memory management like malloc/free. Any D application, including DasBetterC, that uses explicit memory management can benefit from it.