News for hackers. Stuff that matters.
Re:Stupid Smart Pointers in C by vbezhenar on Monday March 17, 2025 @09:30AM (#43388402)
What's "drop trait" for C? There are no any traits in C.
Re:Stupid Smart Pointers in C by MathMonkeyMan on Tuesday March 18, 2025 @01:18AM (#43396021)
Parent post said Rust.

edit: TIL: Looks like the [drop trait][1] is an opt-in destructor that the Rust compiler understands.

[1]: https://doc.rust-lang.org/nomicon/dropck.html