News for hackers. Stuff that matters.
Re:Honey, I shrunk {fmt}: bringing binary size to 14k and di... by progmetaldev on Sunday September 01, 2024 @06:40PM (#41421002)
Isn't it also possible for other logic to run in a destructor, such as freeing pointers to external resources? Doesn't this cause (at the very least) the possibility for more advanced logic to be run beyond freeing the object's own memory?
Re:Honey, I shrunk {fmt}: bringing binary size to 14k and di... by c0balt on Monday September 02, 2024 @10:43AM (#41425743)
Yes, it usually is. See, e.g., smart pointers.