Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fun fact: what you did is a hand implementation of Rust's "drop flag" (https://doc.rust-lang.org/nomicon/drop-flags.html).


That's pretty cool - it never occurred to me that determining drops required anything other than static analysis. Nice that it doesn't affect the layout of the types, either...which I'm guessing is why they added:

>The drop flags are tracked on the stack and no longer stashed in types that implement drop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: