Hacker News new | ask | show | jobs
by enriquto 3015 days ago
you do not need destructors if you put your stuff on the stack
1 comments

just putting stuff on the stack in C won't magically call `fclose` or `pthread_mutex_unlock`, unlike destructors