Y
Hacker News
new
|
ask
|
show
|
jobs
by
RhysU
3013 days ago
I have often wanted c99 with destructors for RAII purposes.
1 comments
enriquto
3013 days ago
you do not need destructors if you put your stuff on the stack
link
jcelerier
3013 days ago
just putting stuff on the stack in C won't magically call `fclose` or `pthread_mutex_unlock`, unlike destructors
link