4 ms·
Rust notably has slightly weakened RAII semantics: https://github.com/rust-lang/rfcs/blob/master/text/1066-safe-mem-forget.md https://github.com/rust-lang/rfcs/
by zokier 10y ago
Rust notably has slightly weakened RAII semantics: https://github.com/rust-lang/rfcs/blob/master/text/1066-safe-mem-forget.md https://github.com/rust-lang/rfcs/blob/master/text/1066-safe...
tldr is that Rust does not guarantee that dtors are run
- steveklabnik 10y agoC++ doesn't either, see http://stackoverflow.com/questions/7054685/are-destructors-run-when-calling-exit http://stackoverflow.com/questions/7054685/are-destructors-r... for example.