by DanWaterworth · 8y ago · 0 comments
The issue is when you produce an API that contains objects with destructors. Since you are handing these entities off to unknown code, you cannot ensure that they will be dropped. This was a problem in scoped threads in Rust.
In which case in rust you cannot be sure that "the drop" will be called?
But Rc would not work if the drop was not guaranteed to be called.
See the very excellent http://cglab.ca/~abeinges/blah/everyone-poops/