|
|
|
|
|
by nemetroid
1766 days ago
|
|
Correct, but except in very special cases, memory leaks are themselves considered bugs. Using memory leaks as an example of RAII not always working is, in my mind, similar to saying Rust doesn't prevent memory errors since it has the "unsafe" keyword. |
|
Similar to forgetting memory in Rust, and then there is no miracle RAII.