Re:Comparative unsafety
by cryptonector on Friday April 09, 2021 @11:49PM
(#26758765)
It's freed for the same reason it could be freed in Java. In Java it could be freed immediately after as_ptr() returns if that was the last reference, but may be freed later. In Rust it would be freed immediately after as_ptr() returns because that was the last reference.
[ Parent
| on HN ]
There are no comments on this comment yet.